Commit 12dd7d2a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix issues search test

parent 8063672a
......@@ -3,6 +3,7 @@ Feature: Project Issues
Given I sign in as a user
And I own project "Shop"
And project "Shop" have "Release 0.4" open issue
And project "Shop" have "Tweet feature" open issue
And project "Shop" have "Release 0.3" closed issue
And I visit project "Shop" issues page
......@@ -40,6 +41,7 @@ Feature: Project Issues
Given I fill in issue search with "Release"
Then I should see "Release 0.4" in issues
And I should not see "Release 0.3" in issues
And I should not see "Tweet feature" in issues
@javascript
Scenario: I search issue that not exist
......
......@@ -12,6 +12,10 @@ class ProjectIssues < Spinach::FeatureSteps
page.should_not have_content "Release 0.3"
end
And 'I should not see "Tweet feature" in issues' do
page.should_not have_content "Tweet feature"
end
Given 'I click link "Closed"' do
click_link "Closed"
end
......@@ -123,6 +127,14 @@ class ProjectIssues < Spinach::FeatureSteps
author: project.users.first)
end
And 'project "Shop" have "Tweet feature" open issue' do
project = Project.find_by_name("Shop")
create(:issue,
title: "Tweet feature",
project: project,
author: project.users.first)
end
And 'project "Shop" have "Release 0.3" closed issue' do
project = Project.find_by_name("Shop")
create(:closed_issue,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment