diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-02-26 05:57:28 +0300 |
---|---|---|
committer | Rubén Dávila <rdavila84@gmail.com> | 2016-03-02 20:51:29 +0300 |
commit | 0b86b46a2c0eeaa397d2dccb49bf51d096ac12c6 (patch) | |
tree | 79beec1803df5116f0759383e42158dcc0899b2a /features/steps/groups.rb | |
parent | 6aa50165b0acc355925e271f07ef8e87291e0232 (diff) |
Don't list issues from archived projects in Group view.
Diffstat (limited to 'features/steps/groups.rb')
-rw-r--r-- | features/steps/groups.rb | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/features/steps/groups.rb b/features/steps/groups.rb index 1e2a78a6029..b0ec402531b 100644 --- a/features/steps/groups.rb +++ b/features/steps/groups.rb @@ -44,6 +44,12 @@ class Spinach::Features::Groups < Spinach::FeatureSteps end end + step 'I should not see issues from the archived project' do + @archived_project.issues.each do |issue| + expect(page).not_to have_content issue.title + end + end + step 'I should see merge requests from group "Owned" assigned to me' do assigned_to_me(:merge_requests).each do |issue| expect(page).to have_content issue.title[0..80] @@ -113,7 +119,7 @@ class Spinach::Features::Groups < Spinach::FeatureSteps step 'Group "Owned" has archived project' do group = Group.find_by(name: 'Owned') - create(:project, namespace: group, archived: true, path: "archived-project") + @archived_project = create(:project, namespace: group, archived: true, path: "archived-project") end step 'I should see "archived" label' do @@ -124,6 +130,13 @@ class Spinach::Features::Groups < Spinach::FeatureSteps visit group_path(-1) end + step 'the archived project have some issues' do + create :issue, + project: @archived_project, + assignee: current_user, + author: current_user + end + private def assigned_to_me(key) |