Reserved test to check for wrong password #2565

This commit is contained in:
Martin Lensment 2015-07-09 13:21:41 +03:00
parent ad7dc80b76
commit 94adc9496f

View file

@ -26,6 +26,9 @@ feature 'ReservedDomain', type: :feature do
d.valid?.should == false 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(["Domain is reserved and requires correct auth info"])
d.auth_info = 'wrongpw'
d.valid?.should == false
d.auth_info = 'testpw' d.auth_info = 'testpw'
d.valid?.should == true d.valid?.should == true
d.errors.full_messages.should match_array([]) d.errors.full_messages.should match_array([])