Sha256: f558ddc365a02d1e829ddf46195be4c9f678d2c5903c5d3a2c99851866cd9df3
Contents?: true
Size: 620 Bytes
Versions: 2
Compression:
Stored size: 620 Bytes
Contents
describe(OmniAuth::Identity::Models::CouchPotatoModule, :db => true) do class CouchPotatoTestIdentity include CouchPotato::Persistence include OmniAuth::Identity::Models::CouchPotatoModule auth_key :ham_sandwich end describe 'model', type: :model do subject { CouchPotatoTestIdentity } it 'should delegate locate to the where query method' do allow(subject).to receive(:where).with('ham_sandwich' => 'open faced', 'category' => 'sandwiches').and_return(['wakka']) expect(subject.locate('ham_sandwich' => 'open faced', 'category' => 'sandwiches')).to eq('wakka') end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
omniauth-identity-2.0.0 | spec/omniauth/identity/models/couch_potato_spec.rb |
omniauth-identity2-2.0 | spec/omniauth/identity/models/couch_potato_spec.rb |