2012-09-10 14:34:01 +02:00
|
|
|
class ProjectLabels < Spinach::FeatureSteps
|
2012-09-10 17:35:03 +02:00
|
|
|
include SharedAuthentication
|
|
|
|
include SharedProject
|
|
|
|
include SharedPaths
|
|
|
|
|
2012-09-10 14:34:01 +02: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
|
|
|
|
project = Project.find_by_name("Shop")
|
|
|
|
['bug', 'feature'].each do |label|
|
2012-11-06 04:31:55 +01:00
|
|
|
create(:issue, project: project, label_list: label)
|
2012-09-10 14:34:01 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|