Commit 12dd7d2a9ab3066085572e0a47425a0442dd07ab
1 parent
8063672a
Exists in
master
and in
4 other branches
Fix issues search test
Showing
2 changed files
with
14 additions
and
0 deletions
Show diff stats
features/project/issues/issues.feature
... | ... | @@ -3,6 +3,7 @@ Feature: Project Issues |
3 | 3 | Given I sign in as a user |
4 | 4 | And I own project "Shop" |
5 | 5 | And project "Shop" have "Release 0.4" open issue |
6 | + And project "Shop" have "Tweet feature" open issue | |
6 | 7 | And project "Shop" have "Release 0.3" closed issue |
7 | 8 | And I visit project "Shop" issues page |
8 | 9 | |
... | ... | @@ -40,6 +41,7 @@ Feature: Project Issues |
40 | 41 | Given I fill in issue search with "Release" |
41 | 42 | Then I should see "Release 0.4" in issues |
42 | 43 | And I should not see "Release 0.3" in issues |
44 | + And I should not see "Tweet feature" in issues | |
43 | 45 | |
44 | 46 | @javascript |
45 | 47 | Scenario: I search issue that not exist | ... | ... |
features/steps/project/project_issues.rb
... | ... | @@ -12,6 +12,10 @@ class ProjectIssues < Spinach::FeatureSteps |
12 | 12 | page.should_not have_content "Release 0.3" |
13 | 13 | end |
14 | 14 | |
15 | + And 'I should not see "Tweet feature" in issues' do | |
16 | + page.should_not have_content "Tweet feature" | |
17 | + end | |
18 | + | |
15 | 19 | Given 'I click link "Closed"' do |
16 | 20 | click_link "Closed" |
17 | 21 | end |
... | ... | @@ -123,6 +127,14 @@ class ProjectIssues < Spinach::FeatureSteps |
123 | 127 | author: project.users.first) |
124 | 128 | end |
125 | 129 | |
130 | + And 'project "Shop" have "Tweet feature" open issue' do | |
131 | + project = Project.find_by_name("Shop") | |
132 | + create(:issue, | |
133 | + title: "Tweet feature", | |
134 | + project: project, | |
135 | + author: project.users.first) | |
136 | + end | |
137 | + | |
126 | 138 | And 'project "Shop" have "Release 0.3" closed issue' do |
127 | 139 | project = Project.find_by_name("Shop") |
128 | 140 | create(:closed_issue, | ... | ... |