mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 12:30:48 +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'))
|
||||
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
|
||||
[:username, :email, :raw_password, :steamid]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue