diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-04-12 00:14:02 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-04-12 19:05:50 +0300 |
commit | eae2ed3366ac13832c56aefe965513b986d7e8b1 (patch) | |
tree | 12fa2cb1bac9ab03c1476f5c58f215aaf0a7ba10 /spec/features/projects/issues | |
parent | 2bf3846adcac843958837a32fafdeb63d067a532 (diff) |
Spec improvements for speed, reliability and readability
Diffstat (limited to 'spec/features/projects/issues')
-rw-r--r-- | spec/features/projects/issues/user_views_issue_spec.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/spec/features/projects/issues/user_views_issue_spec.rb b/spec/features/projects/issues/user_views_issue_spec.rb index d17ce636f3b..4093876c289 100644 --- a/spec/features/projects/issues/user_views_issue_spec.rb +++ b/spec/features/projects/issues/user_views_issue_spec.rb @@ -14,19 +14,19 @@ describe "User views issue" do it { expect(page).to have_header_with_correct_id_and_link(1, "Description header", "description-header") } - it { expect(page).to have_link('New issue') } - - it { expect(page).to have_button('Create merge request') } - - it { expect(page).to have_link('Close issue') } + it 'shows the merge request and issue actions', :aggregate_failures do + expect(page).to have_link('New issue') + expect(page).to have_button('Create merge request') + expect(page).to have_link('Close issue') + end context 'when the project is archived' do - let(:project) { create(:project, :public, archived: true) } - - it { expect(page).not_to have_link('New issue') } - - it { expect(page).not_to have_button('Create merge request') } + let(:project) { create(:project, :public, :archived) } - it { expect(page).not_to have_link('Close issue') } + it 'hides the merge request and issue actions', :aggregate_failures do + expect(page).not_to have_link('New issue') + expect(page).not_to have_button('Create merge request') + expect(page).not_to have_link('Close issue') + end end end |