You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just found out that `assert_difference` supports passing a hash of
expressions/numeric differences, so, I thought it'd be a good idea to
include it as an example.
Example:
```ruby
assert_difference({ 'Article.count' => 1, 'Notification.count' => 2 }) do
post :create, params: { article: {...} }
end
```
0 commit comments