# File lib/rspec/matchers/built_in/have.rb, line 35 def determine_collection(collection_or_owner) if collection_or_owner.respond_to?(@collection_name) collection_or_owner.send(@collection_name, *@args, &@block) elsif (@plural_collection_name && collection_or_owner.respond_to?(@plural_collection_name)) collection_or_owner.send(@plural_collection_name, *@args, &@block) elsif determine_query_method(collection_or_owner) collection_or_owner else collection_or_owner.send(@collection_name, *@args, &@block) end end