Skip to content

Commit

Permalink
Move tara test to system cases
Browse files Browse the repository at this point in the history
  • Loading branch information
karlerikounapuu committed Oct 2, 2020
1 parent ed29bef commit b6b036f
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ def test_existing_user_gets_signed_in
end

def test_new_user_is_created_and_signed_in
OmniAuth.config.mock_auth[:tara] = OmniAuth::AuthHash.new(@new_user_hash)
OmniAuth.config.mock_auth[:rant_tara] = OmniAuth::AuthHash.new(@new_user_hash)

visit new_registrant_user_session_path
click_link('Sign in')
assert_difference 'RegistrantUser.count' do
visit new_registrant_user_session_path
click_link('Sign in')

assert_text('Signed in successfully')
assert 'New Registrant User', RegistrantUser.last.username
assert 'EE-51007050604', RegistrantUser.last.registrant_ident
assert_equal 'New Registrant User', RegistrantUser.last.username
assert_equal 'EE-51007050604', RegistrantUser.last.registrant_ident
assert_text('Signed in successfully')
end
end
end

0 comments on commit b6b036f

Please sign in to comment.