Sha256: 2bfd7ec57bbc6a919254e7ceb34b008cee1700bf53190585ab3127c6b5fa58d5
Contents?: true
Size: 610 Bytes
Versions: 1
Compression:
Stored size: 610 Bytes
Contents
require 'spec_helper' describe(OmniAuth::Identity::Models::DataMapper, :db => true) do class DataMapperTestIdentity include DataMapper::Resource include OmniAuth::Identity::Models::DataMapper property :id, Serial auth_key :ham_sandwich end DataMapper.finalize 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' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-identity-1.1.0 | spec/omniauth/identity/models/data_mapper_spec.rb |