Sha256: e5cb8309cac8081849fcb04bdea04c5572712cd5fe0909765e6c1d1d90f59635
Contents?: true
Size: 636 Bytes
Versions: 2
Compression:
Stored size: 636 Bytes
Contents
describe(OmniAuth::Identity::Models::ActiveRecord, :db => true) do class TestIdentity < OmniAuth::Identity::Models::ActiveRecord; end describe "model", type: :model do subject { TestIdentity } 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 it 'should not use STI rules for its table name' do expect(subject.table_name).to eq('test_identities') end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
omniauth-identity-2.0.0 | spec/omniauth/identity/models/active_record_spec.rb |
omniauth-identity2-2.0 | spec/omniauth/identity/models/active_record_spec.rb |