require 'spec_helper' describe "OmniAuth::Strategies::MapMyTri" do subject do OmniAuth::Strategies::MapMyTri.new(nil, @options || {}) end context 'client options' do it 'has correct MapMyTri 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