summaryrefslogtreecommitdiff
path: root/features/steps/admin/applications.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/steps/admin/applications.rb')
-rw-r--r--features/steps/admin/applications.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/features/steps/admin/applications.rb b/features/steps/admin/applications.rb
index d59088fa3c3..e092a4b36c0 100644
--- a/features/steps/admin/applications.rb
+++ b/features/steps/admin/applications.rb
@@ -8,7 +8,7 @@ class Spinach::Features::AdminApplications < Spinach::FeatureSteps
end
step 'I should see application form' do
- page.should have_content "New application"
+ expect(page).to have_content "New application"
end
step 'I fill application form out and submit' do
@@ -18,9 +18,9 @@ class Spinach::Features::AdminApplications < Spinach::FeatureSteps
end
step 'I see application' do
- page.should have_content "Application: test"
- page.should have_content "Application Id"
- page.should have_content "Secret"
+ expect(page).to have_content "Application: test"
+ expect(page).to have_content "Application Id"
+ expect(page).to have_content "Secret"
end
step 'I click edit' do
@@ -28,19 +28,19 @@ class Spinach::Features::AdminApplications < Spinach::FeatureSteps
end
step 'I see edit application form' do
- page.should have_content "Edit application"
+ expect(page).to have_content "Edit application"
end
step 'I change name of application and submit' do
- page.should have_content "Edit application"
+ expect(page).to have_content "Edit application"
fill_in :doorkeeper_application_name, with: 'test_changed'
click_on "Submit"
end
step 'I see that application was changed' do
- page.should have_content "test_changed"
- page.should have_content "Application Id"
- page.should have_content "Secret"
+ expect(page).to have_content "test_changed"
+ expect(page).to have_content "Application Id"
+ expect(page).to have_content "Secret"
end
step 'I click to remove application' do
@@ -50,6 +50,6 @@ class Spinach::Features::AdminApplications < Spinach::FeatureSteps
end
step "I see that application is removed" do
- page.find(".oauth-applications").should_not have_content "test_changed"
+ expect(page.find(".oauth-applications")).not_to have_content "test_changed"
end
end