Skip to content

Instantly share code, notes, and snippets.

@bogdan
Created September 9, 2010 12:10
Show Gist options
  • Save bogdan/571790 to your computer and use it in GitHub Desktop.
Save bogdan/571790 to your computer and use it in GitHub Desktop.
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