spec/featrues/nyauth/sessions_spec.rb in nyauth-0.3.0 vs spec/featrues/nyauth/sessions_spec.rb in nyauth-0.4.0

- old
+ new

@@ -5,12 +5,12 @@ let(:user) { create(:user) } feature 'sign in' do background { visit nyauth.new_session_path } scenario 'sign in user' do - fill_in('session_service_email', with: user.email) - fill_in('session_service_password', with: user.password) + fill_in('session_email', with: user.email) + fill_in('session_password', with: user.password) click_button('Sign in') expect(page).to have_content('sign in success') end @@ -23,12 +23,12 @@ feature 'sign in & redirect to page accessed before sign in' do background { visit posts_path } scenario 'sign in user' do - fill_in('session_service_email', with: user.email) - fill_in('session_service_password', with: user.password) + fill_in('session_email', with: user.email) + fill_in('session_password', with: user.password) click_button('Sign in') expect(page).to have_content('sign in success') expect(current_path).to eq posts_path end @@ -55,11 +55,11 @@ let(:admin) { create(:admin) } feature 'sign in' do background { visit new_admin_session_path } scenario 'sign in admin' do - fill_in('session_service_email', with: admin.email) - fill_in('session_service_password', with: admin.password) + fill_in('session_email', with: admin.email) + fill_in('session_password', with: admin.password) click_button('Sign in') expect(page).to have_content('sign in success') end