Skip to content
  • Julien Meichelbeck's avatar
    e0f0d717
    Support hash as first argument in `assert_difference`. (#31600) · e0f0d717
    Julien Meichelbeck authored
    * Support hash as first argument for `assert_difference`.
    
    This allows to specify multiple numeric differences in the same assertion.
    Example:
    
        assert_difference 'Article.count' => 1, 'Notification.count' => 2 do
          # post :create, params: { article: {...} }
        end
    
    * Support error message when passing a hash as a first parameter
    
    * Format CHANGELOG properly
    
    [Julien Meichelbeck + Rafael Mendonça França]
    e0f0d717
    Support hash as first argument in `assert_difference`. (#31600)
    Julien Meichelbeck authored
    * Support hash as first argument for `assert_difference`.
    
    This allows to specify multiple numeric differences in the same assertion.
    Example:
    
        assert_difference 'Article.count' => 1, 'Notification.count' => 2 do
          # post :create, params: { article: {...} }
        end
    
    * Support error message when passing a hash as a first parameter
    
    * Format CHANGELOG properly
    
    [Julien Meichelbeck + Rafael Mendonça França]
Loading