summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-08-12 22:09:38 -0600
committermo khan <mo@mokhan.ca>2014-08-12 22:09:38 -0600
commit537d150e289bed715f8e700ba5f986f3b95a99f4 (patch)
treef69d5fb8bc2090eef189b692f4230f8a83b72850 /spec/features
parent8ceb8f9fba1191282d8db777991d70fd8f004325 (diff)
update all authentication to use the new authenticate before_filter.
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/add_to_favorites_spec.rb2
-rw-r--r--spec/features/change_password_spec.rb2
-rw-r--r--spec/features/change_profile_settings_spec.rb2
-rw-r--r--spec/features/forgot_password_spec.rb2
-rw-r--r--spec/features/logins_spec.rb6
-rw-r--r--spec/features/upload_avatar_spec.rb2
-rw-r--r--spec/features/upload_creation_spec.rb6
7 files changed, 11 insertions, 11 deletions
diff --git a/spec/features/add_to_favorites_spec.rb b/spec/features/add_to_favorites_spec.rb
index f67d2ab9..1f25c117 100644
--- a/spec/features/add_to_favorites_spec.rb
+++ b/spec/features/add_to_favorites_spec.rb
@@ -5,7 +5,7 @@ describe "adding a cake to your favorites", :js => true do
let!(:me) { create(:user, :password => "password") }
before :each do
- visit user_session_path
+ visit new_session_path
within('.form-inline') do
fill_in('user_email', :with => me.email)
fill_in('user_password', :with => "password")
diff --git a/spec/features/change_password_spec.rb b/spec/features/change_password_spec.rb
index f716f7a8..1371ff3c 100644
--- a/spec/features/change_password_spec.rb
+++ b/spec/features/change_password_spec.rb
@@ -5,7 +5,7 @@ describe "changing my password" do
let(:user) { create(:user, :password => "password") }
before :each do
- visit user_session_path
+ visit new_session_path
within('.form-inline') do
fill_in('user_email', :with => user.email)
fill_in('user_password', :with => "password")
diff --git a/spec/features/change_profile_settings_spec.rb b/spec/features/change_profile_settings_spec.rb
index 2695ccf9..62eefd35 100644
--- a/spec/features/change_profile_settings_spec.rb
+++ b/spec/features/change_profile_settings_spec.rb
@@ -4,7 +4,7 @@ describe "Change settings" do
let(:user) { create(:user, :password => "password") }
before :each do
- visit user_session_path
+ visit new_session_path
within('.form-inline') do
fill_in('user_email', :with => user.email)
fill_in('user_password', :with => "password")
diff --git a/spec/features/forgot_password_spec.rb b/spec/features/forgot_password_spec.rb
index f2936afa..14783e6a 100644
--- a/spec/features/forgot_password_spec.rb
+++ b/spec/features/forgot_password_spec.rb
@@ -5,7 +5,7 @@ describe "password retrieval", :js => true do
let(:user) { create(:user) }
before :each do
- visit user_session_path
+ visit new_session_path
click_link "Forgot your password?"
within "#new_user" do
fill_in "user_email", :with => user.email
diff --git a/spec/features/logins_spec.rb b/spec/features/logins_spec.rb
index a74c6400..564e5d07 100644
--- a/spec/features/logins_spec.rb
+++ b/spec/features/logins_spec.rb
@@ -3,7 +3,7 @@ require 'rails_helper'
describe "Logins" do
describe "GET /login" do
it "should be able to reach the login page" do
- visit user_session_path
+ visit new_session_path
page.should have_content("Got an account? Login!")
end
@@ -11,7 +11,7 @@ describe "Logins" do
let!(:user) { create(:user, :password => "password") }
before :each do
- visit user_session_path
+ visit new_session_path
within('.form-inline') do
fill_in('user_email', :with => user.email)
fill_in('user_password', :with => "password")
@@ -30,7 +30,7 @@ describe "Logins" do
context "when an email is not known" do
before :each do
- visit user_session_path
+ visit new_session_path
within('.form-inline') do
fill_in('user_email', :with => 'test@example.com')
fill_in('user_password', :with => 'password')
diff --git a/spec/features/upload_avatar_spec.rb b/spec/features/upload_avatar_spec.rb
index 8603c6d4..bcd199a1 100644
--- a/spec/features/upload_avatar_spec.rb
+++ b/spec/features/upload_avatar_spec.rb
@@ -4,7 +4,7 @@ describe "uploading an avatar" do
let(:user) { create(:user, :password => "password") }
before :each do
- visit user_session_path
+ visit new_session_path
within('.form-inline') do
fill_in('user_email', :with => user.email)
fill_in('user_password', :with => "password")
diff --git a/spec/features/upload_creation_spec.rb b/spec/features/upload_creation_spec.rb
index a1b617a4..8ee912d5 100644
--- a/spec/features/upload_creation_spec.rb
+++ b/spec/features/upload_creation_spec.rb
@@ -6,10 +6,10 @@ describe "uploading a new creation", :js => true do
let!(:category_2) { create(:category) }
before :each do
- visit user_session_path
+ 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")
click_link("Add Creation")