mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Add new element, error messages, fix tests #2565
This commit is contained in:
parent
94adc9496f
commit
bfdabaacf3
7 changed files with 77 additions and 25 deletions
|
@ -24,12 +24,14 @@ feature 'ReservedDomain', type: :feature do
|
|||
page.should have_content('110.ee: testpw')
|
||||
|
||||
d.valid?.should == false
|
||||
d.errors.full_messages.should match_array(["Domain is reserved and requires correct auth info"])
|
||||
d.errors.full_messages.should match_array(
|
||||
["Required parameter missing; reserved>pw element required for reserved domains"]
|
||||
)
|
||||
|
||||
d.auth_info = 'wrongpw'
|
||||
d.reserved_pw = 'wrongpw'
|
||||
d.valid?.should == false
|
||||
|
||||
d.auth_info = 'testpw'
|
||||
d.reserved_pw = 'testpw'
|
||||
d.valid?.should == true
|
||||
d.errors.full_messages.should match_array([])
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue