mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 05:05:45 +02:00
Move tara test to system cases
This commit is contained in:
parent
ed29bef7f1
commit
b6b036f37f
1 changed files with 8 additions and 6 deletions
|
@ -37,13 +37,15 @@ class RegistrantAreaTaraUsersTest < ApplicationSystemTestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_new_user_is_created_and_signed_in
|
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
|
assert_difference 'RegistrantUser.count' do
|
||||||
click_link('Sign in')
|
visit new_registrant_user_session_path
|
||||||
|
click_link('Sign in')
|
||||||
|
|
||||||
assert_text('Signed in successfully')
|
assert_equal 'New Registrant User', RegistrantUser.last.username
|
||||||
assert 'New Registrant User', RegistrantUser.last.username
|
assert_equal 'EE-51007050604', RegistrantUser.last.registrant_ident
|
||||||
assert 'EE-51007050604', RegistrantUser.last.registrant_ident
|
assert_text('Signed in successfully')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Add table
Add a link
Reference in a new issue