summaryrefslogtreecommitdiff
path: root/features/steps/project/issues/labels.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/steps/project/issues/labels.rb')
-rw-r--r--features/steps/project/issues/labels.rb38
1 files changed, 19 insertions, 19 deletions
diff --git a/features/steps/project/issues/labels.rb b/features/steps/project/issues/labels.rb
index 6ce34c500c6..d656acf4220 100644
--- a/features/steps/project/issues/labels.rb
+++ b/features/steps/project/issues/labels.rb
@@ -8,14 +8,14 @@ class Spinach::Features::ProjectIssuesLabels < Spinach::FeatureSteps
end
step 'I remove label \'bug\'' do
- within "#label_#{bug_label.id}" do
+ page.within "#label_#{bug_label.id}" do
click_link 'Remove'
end
end
step 'I delete all labels' do
- within '.labels' do
- all('.btn-remove').each do |remove|
+ page.within '.labels' do
+ page.all('.btn-remove').each do |remove|
remove.click
sleep 0.05
end
@@ -23,8 +23,8 @@ class Spinach::Features::ProjectIssuesLabels < Spinach::FeatureSteps
end
step 'I should see labels help message' do
- within '.labels' do
- page.should have_content 'Create first label or generate default set of '\
+ page.within '.labels' do
+ expect(page).to have_content 'Create first label or generate default set of '\
'labels'
end
end
@@ -48,38 +48,38 @@ class Spinach::Features::ProjectIssuesLabels < Spinach::FeatureSteps
end
step 'I should see label label exist error message' do
- within '.label-form' do
- page.should have_content 'Title has already been taken'
+ page.within '.label-form' do
+ expect(page).to have_content 'Title has already been taken'
end
end
step 'I should see label color error message' do
- within '.label-form' do
- page.should have_content 'Color is invalid'
+ page.within '.label-form' do
+ expect(page).to have_content 'Color is invalid'
end
end
step 'I should see label \'feature\'' do
- within '.manage-labels-list' do
- page.should have_content 'feature'
+ page.within '.manage-labels-list' do
+ expect(page).to have_content 'feature'
end
end
step 'I should see label \'bug\'' do
- within '.manage-labels-list' do
- page.should have_content 'bug'
+ page.within '.manage-labels-list' do
+ expect(page).to have_content 'bug'
end
end
step 'I should not see label \'bug\'' do
- within '.manage-labels-list' do
- page.should_not have_content 'bug'
+ page.within '.manage-labels-list' do
+ expect(page).not_to have_content 'bug'
end
end
step 'I should see label \'support\'' do
- within '.manage-labels-list' do
- page.should have_content 'support'
+ page.within '.manage-labels-list' do
+ expect(page).to have_content 'support'
end
end
@@ -90,8 +90,8 @@ class Spinach::Features::ProjectIssuesLabels < Spinach::FeatureSteps
end
step 'I should see label \'fix\'' do
- within '.manage-labels-list' do
- page.should have_content 'fix'
+ page.within '.manage-labels-list' do
+ expect(page).to have_content 'fix'
end
end