Sha256: b92030c023223075419c460ed5b87c444416caea967b4328fb3d700a8f76149c
Contents?: true
Size: 693 Bytes
Versions: 1
Compression:
Stored size: 693 Bytes
Contents
# frozen_string_literal: true RSpec.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 'delegates 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-identity-3.0.2 | spec/omniauth/identity/models/couch_potato_spec.rb |