Skip to content

Instantly share code, notes, and snippets.

@fujimura
Created January 19, 2010 10:57
Show Gist options
  • Save fujimura/280853 to your computer and use it in GitHub Desktop.
Save fujimura/280853 to your computer and use it in GitHub Desktop.
module RecordNotFoundMacros
def should_raise_record_not_found(&block)
should "raise 'Record not Found'" do
assert_raise(ActiveRecord::RecordNotFound) {block.bind(self).call}
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment