diff --git a/spec/features/user_sessions_spec.rb b/spec/features/user_sessions_spec.rb index f983204c5..097fd1ba6 100644 --- a/spec/features/user_sessions_spec.rb +++ b/spec/features/user_sessions_spec.rb @@ -11,7 +11,6 @@ fill_in :user_display_name, with: 'Rick' fill_in :user_password, with: 'password123' fill_in :user_email, with: 'm@il.com' - check :user_agree click_button 'Join OpenFarm' usr = User.find_by(email: 'm@il.com') expect(usr.display_name).to eq('Rick') @@ -21,16 +20,6 @@ expect(usr.confirmed?).to eq(false) end - it 'fails to register when user does not subscribe to tos' do - visit root_path - click_link 'register' - fill_in :user_display_name, with: 'Rick' - fill_in :user_password, with: 'password123' - fill_in :user_email, with: 'm@il.com' - click_button 'Join OpenFarm' - see 'Agree to the Terms of Service and Privacy Policy' - end - it 'logs out' do login_as user visit root_path @@ -146,7 +135,6 @@ def sign_up_procedure fill_in :user_display_name, with: 'Rick' fill_in :user_password, with: 'password123' fill_in :user_email, with: 'm@il.com' - check :user_agree click_button 'Join OpenFarm' usr = User.find_by(email: 'm@il.com')