Sha256: 05601193430bcfebefa0226ed7ebcd5525b7d5ffb276bd44f76e9c59d04985f1
Contents?: true
Size: 587 Bytes
Versions: 1
Compression:
Stored size: 587 Bytes
Contents
require 'spec_helper' describe "OmniAuth::Strategies::MapMyRide" do subject do OmniAuth::Strategies::MapMyRide.new(nil, @options || {}) end context 'client options' do it 'has correct MapMyRun site' do subject.options.client_options.site.should eq('http://api.mapmyfitness.com/3.1') end end # uid { raw_info['result']['output']['user']['user_id'] } context '#uid' do before :each do subject.stub(:raw_info) { { 'user_id' => '123'} } end it 'returns the user_id from raw_info' do subject.uid.should eq('123') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-mapmyride-0.1.1 | spec/omniauth/strategies/mapmyride_spec.rb |