diff --git a/features/project/issues/labels.feature b/features/project/issues/labels.feature index bdc1646ff129b8f1cb3bf73d337809efc6b37e80..a9fe1595fc58c04ae9c1dc30c39a01f4c67fd8ef 100644 --- a/features/project/issues/labels.feature +++ b/features/project/issues/labels.feature @@ -6,8 +6,8 @@ Feature: Project Labels Given I visit project "Shop" labels page Scenario: I should see labels list - Then I should see label "bug" - And I should see label "feature" + Then I should see label 'bug' + And I should see label 'feature' Scenario: I create new label Given I visit project "Shop" new label page diff --git a/features/steps/project/labels.rb b/features/steps/project/labels.rb index 6dd4df8a1ad202d1d29911525b031b51c475d445..62c1d74c7186f1967bd1f9d8a3ea777b48b75726 100644 --- a/features/steps/project/labels.rb +++ b/features/steps/project/labels.rb @@ -3,18 +3,6 @@ class ProjectLabels < Spinach::FeatureSteps include SharedProject include SharedPaths - step 'I should see label "bug"' do - within ".manage-labels-list" do - page.should have_content "bug" - end - end - - step 'I should see label "feature"' do - within ".manage-labels-list" do - page.should have_content "feature" - end - end - step 'I visit \'bug\' label edit page' do visit edit_project_label_path(project, bug_label) end @@ -71,6 +59,12 @@ class ProjectLabels < Spinach::FeatureSteps end end + step 'I should see label \'feature\'' do + within '.manage-labels-list' do + page.should have_content 'feature' + end + end + step 'I should see label \'bug\'' do within '.manage-labels-list' do page.should have_content 'bug'