refactor feature steps
This commit is contained in:
parent
ef4e9c24d3
commit
79eb5ab396
34 changed files with 270 additions and 376 deletions
24
features/steps/project/project_labels.rb
Normal file
24
features/steps/project/project_labels.rb
Normal file
|
@ -0,0 +1,24 @@
|
|||
class ProjectLabels < Spinach::FeatureSteps
|
||||
include SharedAuthentication
|
||||
include SharedProject
|
||||
include SharedPaths
|
||||
|
||||
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|
|
||||
Factory :issue, project: project, label_list: label
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue