diff options
| author | mo khan <mo@mokhan.ca> | 2014-08-14 22:32:46 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-08-14 22:32:46 -0600 |
| commit | d47f27bf34419a0635eebe3f844621784b2bfc19 (patch) | |
| tree | 3bbd05d4ec2dbe0dc6ee6e70b1fc181a02c7fd99 /spec/features | |
| parent | 4067db972ca97dad335170e21906ea77c1f4564e (diff) | |
change usages of new_session_path with login_path
Diffstat (limited to 'spec/features')
| -rw-r--r-- | spec/features/add_to_favorites_spec.rb | 2 | ||||
| -rw-r--r-- | spec/features/change_password_spec.rb | 2 | ||||
| -rw-r--r-- | spec/features/change_profile_settings_spec.rb | 2 | ||||
| -rw-r--r-- | spec/features/forgot_password_spec.rb | 2 | ||||
| -rw-r--r-- | spec/features/logins_spec.rb | 6 | ||||
| -rw-r--r-- | spec/features/registration_spec.rb | 2 | ||||
| -rw-r--r-- | spec/features/upload_avatar_spec.rb | 2 | ||||
| -rw-r--r-- | spec/features/upload_creation_spec.rb | 2 |
8 files changed, 10 insertions, 10 deletions
diff --git a/spec/features/add_to_favorites_spec.rb b/spec/features/add_to_favorites_spec.rb index 29b16ba7..d90ce1f5 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 new_session_path + visit login_path within('.form-inline') do fill_in('session_username', :with => me.email) fill_in('session_password', :with => "password") diff --git a/spec/features/change_password_spec.rb b/spec/features/change_password_spec.rb index 46dee33a..841ef11e 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 new_session_path + visit login_path within('.form-inline') do fill_in('session_username', :with => user.email) fill_in('session_password', :with => "password") diff --git a/spec/features/change_profile_settings_spec.rb b/spec/features/change_profile_settings_spec.rb index a8df1f64..6af077cf 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 new_session_path + visit login_path within('.form-inline') do fill_in('session_username', :with => user.email) fill_in('session_password', :with => "password") diff --git a/spec/features/forgot_password_spec.rb b/spec/features/forgot_password_spec.rb index 14783e6a..37fd6bd2 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 new_session_path + visit login_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 1623a1dd..cc5c7e13 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 new_session_path + visit login_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 new_session_path + visit login_path within('.form-inline') do fill_in('session_username', :with => user.email) fill_in('session_password', :with => "password") @@ -30,7 +30,7 @@ describe "Logins" do context "when an email is not known", js: true do before :each do - visit new_session_path + visit login_path within('.form-inline') do fill_in('session_username', :with => 'test@example.com') fill_in('session_password', :with => 'password') diff --git a/spec/features/registration_spec.rb b/spec/features/registration_spec.rb index 4c8e5296..a23663fb 100644 --- a/spec/features/registration_spec.rb +++ b/spec/features/registration_spec.rb @@ -3,7 +3,7 @@ require "rails_helper" describe "Registration", :js => true do context "when an email is not registered" do before :each do - visit new_session_path + visit login_path within(".form-horizontal") do fill_in('user_name', :with => 'John Smith') fill_in('user_email',:with => Faker::Internet.email) diff --git a/spec/features/upload_avatar_spec.rb b/spec/features/upload_avatar_spec.rb index 6c646f2d..3d552c22 100644 --- a/spec/features/upload_avatar_spec.rb +++ b/spec/features/upload_avatar_spec.rb @@ -4,7 +4,7 @@ describe "uploading an avatar", js: true do let(:user) { create(:user, :password => "password") } before :each do - visit new_session_path + visit login_path within('.form-inline') do fill_in('session_username', :with => user.email) fill_in('session_password', :with => "password") diff --git a/spec/features/upload_creation_spec.rb b/spec/features/upload_creation_spec.rb index 8ee912d5..703294d0 100644 --- a/spec/features/upload_creation_spec.rb +++ b/spec/features/upload_creation_spec.rb @@ -6,7 +6,7 @@ describe "uploading a new creation", :js => true do let!(:category_2) { create(:category) } before :each do - visit new_session_path + visit login_path within('.form-inline') do fill_in('session_username', with: user.email) fill_in('session_password', with: "password") |
