Skip to content

Instantly share code, notes, and snippets.

@sarahsturgeon
Created November 3, 2015 17:12
Show Gist options
  • Save sarahsturgeon/963e24e6633592c79a54 to your computer and use it in GitHub Desktop.
Save sarahsturgeon/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