mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
Add test for nil SteamID
This commit is contained in:
parent
d57ea70716
commit
19e63f5cdc
1 changed files with 9 additions and 0 deletions
|
@ -52,6 +52,15 @@ feature 'Visitor signs up', js: :true do
|
||||||
expect(page).to have_content(error_message('steamid.invalid'))
|
expect(page).to have_content(error_message('steamid.invalid'))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
scenario 'with nil Steam ID' do
|
||||||
|
within registration_form do
|
||||||
|
fill_form(:user, user.slice(*sign_up_attributes).merge({ steamid: nil }))
|
||||||
|
click_button submit(:user, :create)
|
||||||
|
end
|
||||||
|
|
||||||
|
expect(page).to have_content(error_message('steamid.invalid'))
|
||||||
|
end
|
||||||
|
|
||||||
def sign_up_attributes
|
def sign_up_attributes
|
||||||
[:username, :email, :raw_password, :steamid]
|
[:username, :email, :raw_password, :steamid]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue