1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/associations
Ryuta Kamizono 75cfb3dbdb Fix random CI failure due to non-deterministic sorting order
It should be sorted to be deterministic executed result.

```
% bundle exec rake test_postgresql --verbose TESTOPTS="--seed=52812"

(snip)

Failure:
HasManyThroughAssociationsTest#test_has_many_association_through_a_has_many_association_to_self [/Users/kamipo/src/github.com/rails/rails/activerecord/test/cases/associations/has_many_through_associations_test.rb:820]:
--- expected
+++ actual
@@ -1 +1 @@
-[#<Person id: 85, primary_contact_id: 84, gender: "M", number1_fan_id: 1, lock_version: 0, comments: nil, followers_count: 0, friends_too_count: 0, best_friend_id: nil, best_friend_of_id: nil, insures: 0, born_at: nil, created_at: "2017-08-08 07:33:52", updated_at: "2017-08-08 07:33:52", first_name: "John">, #<Person id: 1, primary_contact_id: 2, gender: "M", number1_fan_id: 3, lock_version: 0, comments: nil, followers_count: 1, friends_too_count: 1, best_friend_id: nil, best_friend_of_id: nil, insures: 0, born_at: nil, created_at: "2017-08-08 07:33:49", updated_at: "2017-08-08 07:33:49", first_name: "Michael">, #<Person id: 3, primary_contact_id: 2, gender: "F", number1_fan_id: 1, lock_version: 0, comments: nil, followers_count: 1, friends_too_count: 1, best_friend_id: nil, best_friend_of_id: nil, insures: 0, born_at: nil, created_at: "2017-08-08 07:33:49", updated_at: "2017-08-08 07:33:49", first_name: "Susan">]
+#<ActiveRecord::Associations::CollectionProxy [#<Person id: 1, primary_contact_id: 2, gender: "M", number1_fan_id: 3, lock_version: 0, comments: nil, followers_count: 1, friends_too_count: 1, best_friend_id: nil, best_friend_of_id: nil, insures: 0, born_at: nil, created_at: "2017-08-08 07:33:49", updated_at: "2017-08-08 07:33:49", first_name: "Michael">, #<Person id: 3, primary_contact_id: 2, gender: "F", number1_fan_id: 1, lock_version: 0, comments: nil, followers_count: 1, friends_too_count: 1, best_friend_id: nil, best_friend_of_id: nil, insures: 0, born_at: nil, created_at: "2017-08-08 07:33:49", updated_at: "2017-08-08 07:33:49", first_name: "Susan">, #<Person id: 85, primary_contact_id: 84, gender: "M", number1_fan_id: 1, lock_version: 0, comments: nil, followers_count: 0, friends_too_count: 0, best_friend_id: nil, best_friend_of_id: nil, insures: 0, born_at: nil, created_at: "2017-08-08 07:33:52", updated_at: "2017-08-08 07:33:52", first_name: "John">]>
```
2017-08-08 17:54:42 +09:00
..
belongs_to_associations_test.rb Fix warning: assigned but unused variable - comment 2017-07-25 03:25:23 +09:00
bidirectional_destroy_dependencies_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
callbacks_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
cascaded_eager_loading_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
eager_load_includes_full_sti_class_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
eager_load_nested_include_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
eager_singularization_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
eager_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
extension_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
has_and_belongs_to_many_associations_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
has_many_associations_test.rb Merge remote-tracking branch 'origin/master' into unlock-minitest 2017-08-01 17:34:14 -04:00
has_many_through_associations_test.rb Fix random CI failure due to non-deterministic sorting order 2017-08-08 17:54:42 +09:00
has_one_associations_test.rb Merge pull request #29855 from lugray/has_one_destroyed_by_association 2017-07-21 15:37:29 -04:00
has_one_through_associations_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
inner_join_association_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
inverse_associations_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
join_model_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
left_outer_join_association_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
nested_through_associations_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
required_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00