- @request.env["oauth.token"] = AccessToken.new do |token|
- # Just to test a few
- token.allow_read_prefs = true
- token.allow_write_api = true
- token.allow_read_gpx = false
- end
- get :show
+ token = create(:access_token,
+ :allow_read_prefs => true,
+ :allow_write_api => true,
+ :allow_read_gpx => false)
+ signed_get permissions_path, :oauth => { :token => token }