2012-09-10 12:34:01 +00:00
|
|
|
class ProjectLabels < Spinach::FeatureSteps
|
2012-09-10 15:35:03 +00:00
|
|
|
include SharedAuthentication
|
|
|
|
include SharedProject
|
|
|
|
include SharedPaths
|
|
|
|
|
2012-09-10 12:34:01 +00:00
|
|
|
Then 'I should see label "bug"' do
|
|
|
|
within ".labels-table" do
|
|
|
|
page.should have_content "bug"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
And 'I should see label "feature"' do
|
|
|
|
within ".labels-table" do
|
|
|
|
page.should have_content "feature"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
And 'project "Shop" have issues tags: "bug", "feature"' do
|
2014-01-19 18:55:59 +00:00
|
|
|
project = Project.find_by(name: "Shop")
|
2012-09-10 12:34:01 +00:00
|
|
|
['bug', 'feature'].each do |label|
|
2012-11-06 03:31:55 +00:00
|
|
|
create(:issue, project: project, label_list: label)
|
2012-09-10 12:34:01 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|