Created
September 9, 2010 12:10
-
-
Save bogdan/571790 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
context "without password confirmation" do | |
before(:each) do | |
subject.instance_eval do | |
def password_confirmation | |
self.password | |
end | |
end | |
end | |
it {should accept_values_for(:password, "abcdefg1")} | |
it {should_not accept_values_for(:password, "Abcdefgh", "12345678")} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment