Codebase list ruby-omniauth-facebook / 76eb996
Add test for info_fields parameter. Josef Šimánek 10 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
257257 @options = { :locale => 'cs_CZ' }
258258 strategy.stubs(:access_token).returns(@access_token)
259259 @access_token.expects(:get).with('/me', {:params => {:locale => 'cs_CZ'}}).returns(stub_everything('OAuth2::Response'))
260 strategy.raw_info
261 end
262
263 test 'performs a GET to https://graph.facebook.com/me with info_fields' do
264 @options = { :info_fields => 'about' }
265 strategy.stubs(:access_token).returns(@access_token)
266 @access_token.expects(:get).with('/me', {:params => {:fields => 'about'}}).returns(stub_everything('OAuth2::Response'))
260267 strategy.raw_info
261268 end
262269