summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-08-12 22:29:14 -0600
committermo khan <mo@mokhan.ca>2014-08-12 22:29:14 -0600
commit91d13ed2441a95cc8dca9e889d662339bafa198a (patch)
tree320a69ecca22995f3ae077ca23bd9b999751211d /spec/features
parent537d150e289bed715f8e700ba5f986f3b95a99f4 (diff)
try to fix some broken specs.
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/add_to_favorites_spec.rb4
-rw-r--r--spec/features/change_password_spec.rb4
-rw-r--r--spec/features/change_profile_settings_spec.rb4
-rw-r--r--spec/features/logins_spec.rb14
-rw-r--r--spec/features/upload_avatar_spec.rb4
5 files changed, 15 insertions, 15 deletions
diff --git a/spec/features/add_to_favorites_spec.rb b/spec/features/add_to_favorites_spec.rb
index 1f25c117..26fbf99d 100644
--- a/spec/features/add_to_favorites_spec.rb
+++ b/spec/features/add_to_favorites_spec.rb
@@ -7,8 +7,8 @@ describe "adding a cake to your favorites", :js => true do
before :each do
visit new_session_path
within('.form-inline') do
- fill_in('user_email', :with => me.email)
- fill_in('user_password', :with => "password")
+ fill_in('session_username', :with => me.email)
+ fill_in('session_password', :with => "password")
end
click_button("Sign In")
click_link(creation.name)
diff --git a/spec/features/change_password_spec.rb b/spec/features/change_password_spec.rb
index 1371ff3c..46dee33a 100644
--- a/spec/features/change_password_spec.rb
+++ b/spec/features/change_password_spec.rb
@@ -7,8 +7,8 @@ describe "changing my password" do
before :each do
visit new_session_path
within('.form-inline') do
- fill_in('user_email', :with => user.email)
- fill_in('user_password', :with => "password")
+ fill_in('session_username', :with => user.email)
+ fill_in('session_password', :with => "password")
end
click_button("Sign In")
visit my_settings_path
diff --git a/spec/features/change_profile_settings_spec.rb b/spec/features/change_profile_settings_spec.rb
index 62eefd35..a8df1f64 100644
--- a/spec/features/change_profile_settings_spec.rb
+++ b/spec/features/change_profile_settings_spec.rb
@@ -6,8 +6,8 @@ describe "Change settings" do
before :each do
visit new_session_path
within('.form-inline') do
- fill_in('user_email', :with => user.email)
- fill_in('user_password', :with => "password")
+ fill_in('session_username', :with => user.email)
+ fill_in('session_password', :with => "password")
end
click_button("Sign In")
visit my_settings_path
diff --git a/spec/features/logins_spec.rb b/spec/features/logins_spec.rb
index 564e5d07..1623a1dd 100644
--- a/spec/features/logins_spec.rb
+++ b/spec/features/logins_spec.rb
@@ -13,14 +13,14 @@ describe "Logins" do
before :each do
visit new_session_path
within('.form-inline') do
- fill_in('user_email', :with => user.email)
- fill_in('user_password', :with => "password")
+ fill_in('session_username', :with => user.email)
+ fill_in('session_password', :with => "password")
end
click_button("Sign In")
end
it "should let the user signin with the proper password" do
- page.should have_content(I18n.t('devise.sessions.signed_in'))
+ page.should have_content("Log Out")
end
it "should not have an error" do
@@ -28,18 +28,18 @@ describe "Logins" do
end
end
- context "when an email is not known" do
+ context "when an email is not known", js: true do
before :each do
visit new_session_path
within('.form-inline') do
- fill_in('user_email', :with => 'test@example.com')
- fill_in('user_password', :with => 'password')
+ fill_in('session_username', :with => 'test@example.com')
+ fill_in('session_password', :with => 'password')
end
click_button "Sign In"
end
it "should display an error message" do
- page.should have_content(I18n.t('devise.failure.invalid'))
+ page.should have_content("invalid credentials")
end
end
end
diff --git a/spec/features/upload_avatar_spec.rb b/spec/features/upload_avatar_spec.rb
index bcd199a1..caf1a3d7 100644
--- a/spec/features/upload_avatar_spec.rb
+++ b/spec/features/upload_avatar_spec.rb
@@ -6,8 +6,8 @@ describe "uploading an avatar" do
before :each do
visit new_session_path
within('.form-inline') do
- fill_in('user_email', :with => user.email)
- fill_in('user_password', :with => "password")
+ fill_in('sessions_username', :with => user.email)
+ fill_in('sessions_password', :with => "password")
end
click_button("Sign In")
visit edit_my_avatar_path(user)