stubs/default/test/integration/auth/authentication_test.rb in kaze-0.8.0 vs stubs/default/test/integration/auth/authentication_test.rb in kaze-0.9.0

- old
+ new

@@ -6,11 +6,11 @@ assert_response :success end test 'users can authenticate using the login screen' do - user = FactoryBot.create :user + user = FactoryBot.create(:user) post login_path, params: { email: user.email, password: 'password' } @@ -18,25 +18,23 @@ assert_authenticated assert_redirected_to dashboard_path end test 'users cannot authenticate with invalid password' do - user = FactoryBot.create :user + user = FactoryBot.create(:user) post login_path, params: { email: user.email, password: 'wrong-password' } assert_guest end test 'users can logout' do - user = FactoryBot.create :user + user = FactoryBot.create(:user) - acting_as user - - post logout_path + acting_as(user).post logout_path assert_guest assert_redirected_to '/' end end