Sha256: 51d776d2804041baaffbab0e2057abcb858f0e5a50da5cb220794e620f3ad0ab
Contents?: true
Size: 597 Bytes
Versions: 1
Compression:
Stored size: 597 Bytes
Contents
require 'spec_helper' describe "OmniAuth::Strategies::MapMyFitness" do subject do OmniAuth::Strategies::MapMyFitness.new(nil, @options || {}) end context 'client options' do it 'has correct Mapmyfitness 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-mapmyfitness-0.1.2 | spec/omniauth/strategies/mapmyfitness_spec.rb |