Skip to content

Instantly share code, notes, and snippets.

@brandonsturgeon
Created November 3, 2015 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandonsturgeon/963e24e6633592c79a54 to your computer and use it in GitHub Desktop.
Save brandonsturgeon/963e24e6633592c79a54 to your computer and use it in GitHub Desktop.
# Um, am I allowed ot do this, or is this cheating??
Account.good_params.each do |param, value|
it "should be invalid with nil #{param}" do
account = Account.good_account
account[param] = nil
expect(account).to be_invalid
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment