Fix outdated count statement

This has been broken with 4.2.7:
https://github.com/rails/rails/blob/4-2-stable/activerecord/CHANGELOG.md#rails-427-july-12-2016
pull/4697/head
Oliver Günther 8 years ago
parent 811e4477a2
commit 718401799a
  1. 2
      spec_legacy/functional/repositories_controller_spec.rb

@ -141,7 +141,7 @@ describe RepositoriesController, type: :controller do
revision: 100,
comments: 'Committed by foo.'
)
assert_no_difference "Changeset.count(conditions: 'user_id = 3')" do
assert_no_difference "Changeset.where('user_id = 3').count" do
post :committers, project_id: 1,
committers: { '0' => ['foo', '2'], '1' => ['dlopper', '3'] }
assert_redirected_to '/projects/ecookbook/repository/committers'

Loading…
Cancel
Save