spec/omniauth/identity/models/data_mapper_spec.rb in omniauth-identity-1.1.0 vs spec/omniauth/identity/models/data_mapper_spec.rb in omniauth-identity-1.1.1

- old
+ new

@@ -13,10 +13,10 @@ before :all do @resource = DataMapperTestIdentity.new end - it 'should locate using the auth key using a all query' do - DataMapperTestIdentity.should_receive(:all).with('ham_sandwich' => 'open faced').and_return(['wakka']) - DataMapperTestIdentity.locate('open faced').should == 'wakka' + it 'should delegate locate to the all query method' do + DataMapperTestIdentity.should_receive(:all).with('ham_sandwich' => 'open faced', 'category' => 'sandwiches').and_return(['wakka']) + DataMapperTestIdentity.locate('ham_sandwich' => 'open faced', 'category' => 'sandwiches').should == 'wakka' end end