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