diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2014-10-27 11:20:43 +0300 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2014-10-27 11:20:43 +0300 |
commit | d7476123852a7164b63e097b4aac73b04d1eca5c (patch) | |
tree | d3285b44f40ed95b19bb25b83a193038fea0b980 /features/steps/dashboard | |
parent | 6280b53f305e45d0e6c474dbcf684f0015aee385 (diff) |
Failing feature for dashboard issues when user has authored issues on projects he is not a member of.
Diffstat (limited to 'features/steps/dashboard')
-rw-r--r-- | features/steps/dashboard/issues.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/features/steps/dashboard/issues.rb b/features/steps/dashboard/issues.rb index 6b5f88e5895..2a5850d091b 100644 --- a/features/steps/dashboard/issues.rb +++ b/features/steps/dashboard/issues.rb @@ -10,6 +10,7 @@ class Spinach::Features::DashboardIssues < Spinach::FeatureSteps step 'I should see issues authored by me' do should_see(authored_issue) + should_see(authored_issue_on_public_project) should_not_see(assigned_issue) should_not_see(other_issue) end @@ -22,6 +23,7 @@ class Spinach::Features::DashboardIssues < Spinach::FeatureSteps step 'I have authored issues' do authored_issue + authored_issue_on_public_project end step 'I have assigned issues' do @@ -64,6 +66,10 @@ class Spinach::Features::DashboardIssues < Spinach::FeatureSteps @other_issue ||= create :issue, project: project end + def authored_issue_on_public_project + @authored_issue_on_public_project ||= create :issue, author: current_user, project: public_project + end + def project @project ||= begin project =create :project @@ -71,4 +77,8 @@ class Spinach::Features::DashboardIssues < Spinach::FeatureSteps project end end + + def public_project + @public_project ||= create :project, :public + end end |