summaryrefslogtreecommitdiff
path: root/features/steps/project/hooks.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/hooks.rb
parentb07cf1182f78c5c46edbfa0fde668dd75ae47e05 (diff)
downloadgitlab-ce-69bbc413fec7aa4168d9ff12df5421674db90032.tar.gz
Update all `should`-style syntax to `expect` in features
Diffstat (limited to 'features/steps/project/hooks.rb')
-rw-r--r--features/steps/project/hooks.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/features/steps/project/hooks.rb b/features/steps/project/hooks.rb
index d06905285fe..04e3bf78ede 100644
--- a/features/steps/project/hooks.rb
+++ b/features/steps/project/hooks.rb
@@ -19,7 +19,7 @@ class Spinach::Features::ProjectHooks < Spinach::FeatureSteps
end
step 'I should see project hook' do
- page.should have_content @hook.url
+ expect(page).to have_content @hook.url
end
step 'I submit new hook' do
@@ -29,8 +29,8 @@ class Spinach::Features::ProjectHooks < Spinach::FeatureSteps
end
step 'I should see newly created hook' do
- current_path.should == namespace_project_hooks_path(current_project.namespace, current_project)
- page.should have_content(@url)
+ expect(current_path).to eq namespace_project_hooks_path(current_project.namespace, current_project)
+ expect(page).to have_content(@url)
end
step 'I click test hook button' do
@@ -44,19 +44,19 @@ class Spinach::Features::ProjectHooks < Spinach::FeatureSteps
end
step 'hook should be triggered' do
- current_path.should == namespace_project_hooks_path(current_project.namespace, current_project)
- page.should have_selector '.flash-notice',
+ expect(current_path).to eq namespace_project_hooks_path(current_project.namespace, current_project)
+ expect(page).to have_selector '.flash-notice',
text: 'Hook successfully executed.'
end
step 'I should see hook error message' do
- page.should have_selector '.flash-alert',
+ expect(page).to have_selector '.flash-alert',
text: 'Hook execution failed. '\
'Ensure the project has commits.'
end
step 'I should see hook service down error message' do
- page.should have_selector '.flash-alert',
+ expect(page).to have_selector '.flash-alert',
text: 'Hook execution failed. '\
'Ensure hook URL is correct and '\
'service is up.'