Test-user receives message after registering banned username

This commit is contained in:
Drew Butler 2014-01-18 13:32:57 -06:00
parent dd860f06e3
commit 2cd248d122

View file

@ -28,4 +28,8 @@ describe User do
u.authenticate("hunter2").should == u
u.authenticate("hunteR2").should == false
end
it "gets an error message after registering banned name" do
expect { User.make!(:username => "admin") }.to raise_error("Validation failed: Username is not permitted")
end
end