fix order dependent test in AggregationsTest #7451

Merged
merged 1 commit into from Aug 27, 2012

2 participants

@frodsan

Ensure class variable is set to nil.

It prevents the following test to fail:

def test_do_not_run_the_converter_when_nil_was_set
  customers(:david).non_blank_gps_location = nil
  assert_nil Customer.gps_conversion_was_run
end

Check https://github.com/rails/rails/blob/master/activerecord/test/models/customer.rb#L7
for more information.

Francesco Rodriguez fix order dependent test in AggregationsTest
Ensure class variable is set to nil.

It prevents the following test to fail:

    def test_do_not_run_the_converter_when_nil_was_set
      customers(:david).non_blank_gps_location = nil
      assert_nil Customer.gps_conversion_was_run
    end

Check https://github.com/rails/rails/blob/master/activerecord/test/models/customer.rb#L7
for more information.
47cce91
@spastorino spastorino merged commit 930dbbb into rails:master Aug 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment