omniauth-identity 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,24 +0,0 @@
1
- describe(OmniAuth::Identity::Models::DataMapper, :db => true) do
2
- class DataMapperTestIdentity
3
- include DataMapper::Resource
4
- include OmniAuth::Identity::Models::DataMapper
5
-
6
- property :id, Serial
7
- auth_key :ham_sandwich
8
- end
9
-
10
-
11
- before :all do
12
- DataMapper.finalize
13
- @resource = DataMapperTestIdentity.new
14
- end
15
-
16
- describe 'model', type: :model do
17
- subject { DataMapperTestIdentity }
18
-
19
- it 'should delegate locate to the all query method' do
20
- allow(subject).to receive(:all).with('ham_sandwich' => 'open faced', 'category' => 'sandwiches').and_return(['wakka'])
21
- expect(subject.locate('ham_sandwich' => 'open faced', 'category' => 'sandwiches')).to eq('wakka')
22
- end
23
- end
24
- end