summaryrefslogtreecommitdiff
path: root/features/steps/project/snippets.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-06-12 00:44:13 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-06-12 05:12:09 -0400
commit69bbc413fec7aa4168d9ff12df5421674db90032 (patch)
tree215a7f16d4630067bf4863d8d6f992fcac23969e /features/steps/project/snippets.rb
parentb07cf1182f78c5c46edbfa0fde668dd75ae47e05 (diff)
downloadgitlab-ce-69bbc413fec7aa4168d9ff12df5421674db90032.tar.gz
Update all `should`-style syntax to `expect` in features
Diffstat (limited to 'features/steps/project/snippets.rb')
-rw-r--r--features/steps/project/snippets.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/features/steps/project/snippets.rb b/features/steps/project/snippets.rb
index 343aeb53b11..ff3e14b53ba 100644
--- a/features/steps/project/snippets.rb
+++ b/features/steps/project/snippets.rb
@@ -30,15 +30,15 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
end
step 'I should see "Snippet one" in snippets' do
- page.should have_content "Snippet one"
+ expect(page).to have_content "Snippet one"
end
step 'I should not see "Snippet two" in snippets' do
- page.should_not have_content "Snippet two"
+ expect(page).not_to have_content "Snippet two"
end
step 'I should not see "Snippet one" in snippets' do
- page.should_not have_content "Snippet one"
+ expect(page).not_to have_content "Snippet one"
end
step 'I click link "Edit"' do
@@ -61,8 +61,8 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
end
step 'I should see snippet "Snippet three"' do
- page.should have_content "Snippet three"
- page.should have_content "Content of snippet three"
+ expect(page).to have_content "Snippet three"
+ expect(page).to have_content "Content of snippet three"
end
step 'I submit new title "Snippet new title"' do
@@ -71,7 +71,7 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
end
step 'I should see "Snippet new title"' do
- page.should have_content "Snippet new title"
+ expect(page).to have_content "Snippet new title"
end
step 'I leave a comment like "Good snippet!"' do
@@ -82,7 +82,7 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
end
step 'I should see comment "Good snippet!"' do
- page.should have_content "Good snippet!"
+ expect(page).to have_content "Good snippet!"
end
step 'I visit snippet page "Snippet one"' do