diff options
author | unarist <m.unarist@gmail.com> | 2017-06-08 01:59:28 +0900 |
---|---|---|
committer | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-06-07 12:59:28 -0400 |
commit | 0f1b1d78b15bd779c3427d4275d45d3e34e0b2ef (patch) | |
tree | 46023cf3e052fb90cde91cf34465ed76c90d7195 /spec/controllers/application_controller_spec.rb | |
parent | d3bbef27e7f15d1322e26ab181a18b2520f9dff6 (diff) |
Use "match_array" only for order independent assertions (#3626)
Diffstat (limited to 'spec/controllers/application_controller_spec.rb')
-rw-r--r-- | spec/controllers/application_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/application_controller_spec.rb b/spec/controllers/application_controller_spec.rb index 9370dcdad..6a54a78c5 100644 --- a/spec/controllers/application_controller_spec.rb +++ b/spec/controllers/application_controller_spec.rb @@ -266,7 +266,7 @@ describe ApplicationController, type: :controller do shared_examples 'receives :with_includes' do |fabricator, klass| it 'uses raw if it is not an ActiveRecord::Relation' do record = Fabricate(fabricator) - expect(C.new.cache_collection([record], klass)).to match_array([record]) + expect(C.new.cache_collection([record], klass)).to eq [record] end end @@ -277,7 +277,7 @@ describe ApplicationController, type: :controller do record = Fabricate(fabricator) relation = klass.none allow(relation).to receive(:cache_ids).and_return([record]) - expect(C.new.cache_collection(relation, klass)).to match_array([record]) + expect(C.new.cache_collection(relation, klass)).to eq [record] end end |