Skip to content

Instantly share code, notes, and snippets.

@iain
Created January 8, 2012 22:56
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 iain/1580014 to your computer and use it in GitHub Desktop.
Save iain/1580014 to your computer and use it in GitHub Desktop.
occurrence = stub
def occurrence.update_attributes(attrs)
attrs.each do |key, value|
stub(key).and_return(value)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment