Skip to content

Instantly share code, notes, and snippets.

@kieraneglin
Last active December 18, 2017 06:57
Show Gist options
  • Save kieraneglin/1e9a5b247b27a24bc6eedd9b59a12e77 to your computer and use it in GitHub Desktop.
Save kieraneglin/1e9a5b247b27a24bc6eedd9b59a12e77 to your computer and use it in GitHub Desktop.
assert_differences old syntax
assert_difference('User.count', -1) do
assert_difference('GoodbyeMailerJob.size', +1) do
assert_difference('Post.count', -5) do
# Logic...
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment