Skip to content

Instantly share code, notes, and snippets.

@rlivsey
Created February 2, 2010 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rlivsey/292742 to your computer and use it in GitHub Desktop.
Save rlivsey/292742 to your computer and use it in GitHub Desktop.
[ :title,
:first_name, :last_name,
:country_id, :address1,
:address3, :postcode,
:username, :email,
:password, :password_confirmation,
:currency_id,
:security_question_id1,
:security_question_answer1].each do |field|
it "should fail if #{field} is missing" do
@account.send(:"#{field}=", nil)
@account.should_not be_valid_for_create
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment