Test locale option.
Josef Šimánek
10 years ago
256 | 256 | test 'performs a GET to https://graph.facebook.com/me' do |
257 | 257 | strategy.stubs(:access_token).returns(@access_token) |
258 | 258 | @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')) | |
259 | 266 | strategy.raw_info |
260 | 267 | end |
261 | 268 |