Skip to content

Instantly share code, notes, and snippets.

@cookrn
Created November 25, 2010 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cookrn/715850 to your computer and use it in GitHub Desktop.
Save cookrn/715850 to your computer and use it in GitHub Desktop.
The spec test failures gathered after installing the oauth-plugin oauth2 provider generator code on a base rails3 app
$ bundle exec rake spec
(in /Users/ryancook/Workspace/prologue_oauth2)
DEPRECATION WARNING: Rake tasks in /Users/ryancook/Workspace/prologue_oauth2/vendor/plugins/oauth-plugin/tasks/oauth_tasks.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /Users/ryancook/Workspace/prologue_oauth2/Rakefile:7)
/Users/ryancook/Developer/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -S bundle exec rspec "./spec/controllers/admin/dashboard_controller_spec.rb" "./spec/controllers/admin/users_controller_spec.rb" "./spec/controllers/home_controller_spec.rb" "./spec/controllers/oauth_clients_controller_spec.rb" "./spec/controllers/oauth_controller_spec.rb" "./spec/models/client_application_spec.rb" "./spec/models/oauth2_token_spec.rb" "./spec/models/oauth2_verifier_spec.rb" "./spec/models/oauth_nonce_spec.rb" "./spec/models/oauth_token_spec.rb"
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/ryancook/Workspace/prologue_oauth2/vendor/plugins/oauth-plugin/rails/init.rb. (called from <top (required)> at /Users/ryancook/Workspace/prologue_oauth2/config/environment.rb:5)
....FFFFFFFFFFFFFFFFFFFF.FF.F.FF.FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF..FFFFFFFFFFFFFFFFF..FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF..F..F.F....FFFFFFFFFF..............FF.FF............FF....F.F...FFFF..
Failures:
1) OauthClientsController index should be successful
Failure/Error: get :index
undefined local variable or method `login_required' for #<OauthClientsController:0x000001060003c8>
# ./spec/controllers/oauth_clients_controller_spec.rb:21:in `do_get'
# ./spec/controllers/oauth_clients_controller_spec.rb:25:in `block (3 levels) in <top (required)>'
2) OauthClientsController index should assign client_applications
Failure/Error: get :index
undefined local variable or method `login_required' for #<OauthClientsController:0x0000010537cbd8>
# ./spec/controllers/oauth_clients_controller_spec.rb:21:in `do_get'
# ./spec/controllers/oauth_clients_controller_spec.rb:30:in `block (3 levels) in <top (required)>'
3) OauthClientsController index should render index template
Failure/Error: get :index
undefined local variable or method `login_required' for #<OauthClientsController:0x000001052edb18>
# ./spec/controllers/oauth_clients_controller_spec.rb:21:in `do_get'
# ./spec/controllers/oauth_clients_controller_spec.rb:35:in `block (3 levels) in <top (required)>'
4) OauthClientsController show should be successful
Failure/Error: get :show, :id => '1'
undefined local variable or method `login_required' for #<OauthClientsController:0x000001052a4f08>
# ./spec/controllers/oauth_clients_controller_spec.rb:43:in `do_get'
# ./spec/controllers/oauth_clients_controller_spec.rb:47:in `block (3 levels) in <top (required)>'
5) OauthClientsController show should assign client_applications
Failure/Error: get :show, :id => '1'
undefined local variable or method `login_required' for #<OauthClientsController:0x00000103690448>
# ./spec/controllers/oauth_clients_controller_spec.rb:43:in `do_get'
# ./spec/controllers/oauth_clients_controller_spec.rb:52:in `block (3 levels) in <top (required)>'
6) OauthClientsController show should render show template
Failure/Error: get :show, :id => '1'
undefined local variable or method `login_required' for #<OauthClientsController:0x00000101797820>
# ./spec/controllers/oauth_clients_controller_spec.rb:43:in `do_get'
# ./spec/controllers/oauth_clients_controller_spec.rb:57:in `block (3 levels) in <top (required)>'
7) OauthClientsController new should be successful
Failure/Error: get :new
undefined local variable or method `login_required' for #<OauthClientsController:0x000001060698a0>
# ./spec/controllers/oauth_clients_controller_spec.rb:66:in `do_get'
# ./spec/controllers/oauth_clients_controller_spec.rb:70:in `block (3 levels) in <top (required)>'
8) OauthClientsController new should assign client_applications
Failure/Error: get :new
undefined local variable or method `login_required' for #<OauthClientsController:0x000001060499d8>
# ./spec/controllers/oauth_clients_controller_spec.rb:66:in `do_get'
# ./spec/controllers/oauth_clients_controller_spec.rb:75:in `block (3 levels) in <top (required)>'
9) OauthClientsController new should render show template
Failure/Error: get :new
undefined local variable or method `login_required' for #<OauthClientsController:0x0000010601ccd0>
# ./spec/controllers/oauth_clients_controller_spec.rb:66:in `do_get'
# ./spec/controllers/oauth_clients_controller_spec.rb:80:in `block (3 levels) in <top (required)>'
10) OauthClientsController edit should be successful
Failure/Error: get :edit, :id => '1'
undefined local variable or method `login_required' for #<OauthClientsController:0x000001053c2ea8>
# ./spec/controllers/oauth_clients_controller_spec.rb:88:in `do_get'
# ./spec/controllers/oauth_clients_controller_spec.rb:92:in `block (3 levels) in <top (required)>'
11) OauthClientsController edit should assign client_applications
Failure/Error: get :edit, :id => '1'
undefined local variable or method `login_required' for #<OauthClientsController:0x00000105397a00>
# ./spec/controllers/oauth_clients_controller_spec.rb:88:in `do_get'
# ./spec/controllers/oauth_clients_controller_spec.rb:97:in `block (3 levels) in <top (required)>'
12) OauthClientsController edit should render edit template
Failure/Error: get :edit, :id => '1'
undefined local variable or method `login_required' for #<OauthClientsController:0x0000010536ab90>
# ./spec/controllers/oauth_clients_controller_spec.rb:88:in `do_get'
# ./spec/controllers/oauth_clients_controller_spec.rb:102:in `block (3 levels) in <top (required)>'
13) OauthClientsController create should redirect to new client_application
Failure/Error: post :create, 'client_application'=>{'name' => 'my site', :url=>"http://test.com"}
undefined local variable or method `login_required' for #<OauthClientsController:0x000001052dd1f0>
# ./spec/controllers/oauth_clients_controller_spec.rb:111:in `do_valid_post'
# ./spec/controllers/oauth_clients_controller_spec.rb:120:in `block (3 levels) in <top (required)>'
14) OauthClientsController create should render show template
Failure/Error: post :create
undefined local variable or method `login_required' for #<OauthClientsController:0x000001037c2aa0>
# ./spec/controllers/oauth_clients_controller_spec.rb:116:in `do_invalid_post'
# ./spec/controllers/oauth_clients_controller_spec.rb:126:in `block (3 levels) in <top (required)>'
15) OauthClientsController destroy should destroy client applications
Failure/Error: delete :destroy, :id => '1'
undefined local variable or method `login_required' for #<OauthClientsController:0x000001031f4290>
# ./spec/controllers/oauth_clients_controller_spec.rb:134:in `do_delete'
# ./spec/controllers/oauth_clients_controller_spec.rb:138:in `block (3 levels) in <top (required)>'
16) OauthClientsController destroy should redirect to list
Failure/Error: delete :destroy, :id => '1'
undefined local variable or method `login_required' for #<OauthClientsController:0x000001015fe068>
# ./spec/controllers/oauth_clients_controller_spec.rb:134:in `do_delete'
# ./spec/controllers/oauth_clients_controller_spec.rb:143:in `block (3 levels) in <top (required)>'
17) OauthClientsController update should redirect to show client_application
Failure/Error: put :update, :id => '1', 'client_application'=>{'name' => 'updated site'}
undefined local variable or method `login_required' for #<OauthClientsController:0x00000101381290>
# ./spec/controllers/oauth_clients_controller_spec.rb:153:in `do_valid_update'
# ./spec/controllers/oauth_clients_controller_spec.rb:161:in `block (3 levels) in <top (required)>'
18) OauthClientsController update should assign client_applications
Failure/Error: put :update, :id => '1', 'client_application'=>{'name' => nil}
undefined local variable or method `login_required' for #<OauthClientsController:0x000001060aa580>
# ./spec/controllers/oauth_clients_controller_spec.rb:157:in `do_invalid_update'
# ./spec/controllers/oauth_clients_controller_spec.rb:167:in `block (3 levels) in <top (required)>'
19) OauthClientsController update should render show template
Failure/Error: put :update, :id => '1', 'client_application'=>{'name' => nil}
undefined local variable or method `login_required' for #<OauthClientsController:0x0000010603e240>
# ./spec/controllers/oauth_clients_controller_spec.rb:157:in `do_invalid_update'
# ./spec/controllers/oauth_clients_controller_spec.rb:172:in `block (3 levels) in <top (required)>'
20) OauthController getting a request token should be successful
Failure/Error: response.should be_success
expected success? to return true, got false
# ./spec/controllers/oauth_controller_spec.rb:22:in `block (3 levels) in <top (required)>'
21) OauthController getting a request token should request token from client_application
Failure/Error: current_client_application.should_receive(:create_request_token).and_return(request_token)
(#<ClientApplication:0x00000101365590>).create_request_token(any args)
expected: 1 time
received: 0 times
# ./spec/controllers/oauth_controller_spec.rb:31:in `block (3 levels) in <top (required)>'
22) OauthController getting a request token should return token string
Failure/Error: response.body.should==RequestToken.last.to_query
wrong number of arguments (0 for 1)
# ./spec/controllers/oauth_controller_spec.rb:37:in `block (3 levels) in <top (required)>'
23) OauthController getting a request token passing a oauth_callback url should be successful
Failure/Error: response.should be_success
expected success? to return true, got false
# ./spec/controllers/oauth_controller_spec.rb:58:in `block (3 levels) in <top (required)>'
24) OauthController getting a request token passing a oauth_callback url should request token from client_application
Failure/Error: current_client_application.should_receive(:create_request_token).and_return(request_token)
(#<ClientApplication:0x00000101182e58>).create_request_token(any args)
expected: 1 time
received: 0 times
# ./spec/controllers/oauth_controller_spec.rb:67:in `block (3 levels) in <top (required)>'
25) OauthController getting a request token passing a oauth_callback url should return token string
Failure/Error: response.body.should==RequestToken.last.to_query
wrong number of arguments (0 for 1)
# ./spec/controllers/oauth_controller_spec.rb:73:in `block (3 levels) in <top (required)>'
26) OauthController 10a token authorization should show authorize page
Failure/Error: get :authorize, :oauth_token => request_token.token
undefined local variable or method `login_required' for #<OauthController:0x000001060ff210>
# ./spec/controllers/oauth_controller_spec.rb:89:in `do_get'
# ./spec/controllers/oauth_controller_spec.rb:93:in `block (3 levels) in <top (required)>'
27) OauthController 10a token authorization should authorize token
Failure/Error: get :authorize, :oauth_token => request_token.token
undefined local variable or method `login_required' for #<OauthController:0x000001060e8bc8>
# ./spec/controllers/oauth_controller_spec.rb:89:in `do_get'
# ./spec/controllers/oauth_controller_spec.rb:99:in `block (3 levels) in <top (required)>'
28) OauthController 10a token authorization should redirect if token is invalidated
Failure/Error: get :authorize, :oauth_token => request_token.token
undefined local variable or method `login_required' for #<OauthController:0x0000010609af90>
# ./spec/controllers/oauth_controller_spec.rb:89:in `do_get'
# ./spec/controllers/oauth_controller_spec.rb:104:in `block (3 levels) in <top (required)>'
29) OauthController 10a token authorization should redirect to default callback
Failure/Error: post :authorize, :oauth_token => request_token.token, :authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x00000106037d00>
# ./spec/controllers/oauth_controller_spec.rb:117:in `do_post'
# ./spec/controllers/oauth_controller_spec.rb:121:in `block (3 levels) in <top (required)>'
30) OauthController 10a token authorization should authorize token
Failure/Error: post :authorize, :oauth_token => request_token.token, :authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x00000106001688>
# ./spec/controllers/oauth_controller_spec.rb:117:in `do_post'
# ./spec/controllers/oauth_controller_spec.rb:128:in `block (3 levels) in <top (required)>'
31) OauthController 10a token authorization should redirect if token is invalidated
Failure/Error: post :authorize, :oauth_token => request_token.token, :authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x00000105379aa0>
# ./spec/controllers/oauth_controller_spec.rb:117:in `do_post'
# ./spec/controllers/oauth_controller_spec.rb:133:in `block (3 levels) in <top (required)>'
32) OauthController 2.0 authorization code flow authorize redirect should render authorize
Failure/Error: get :authorize, :response_type=>"code",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback"
undefined local variable or method `login_required' for #<OauthController:0x000001052bb0c8>
# ./spec/controllers/oauth_controller_spec.rb:146:in `block (4 levels) in <top (required)>'
33) OauthController 2.0 authorization code flow authorize redirect should not create token
Failure/Error: get :authorize, :response_type=>"code",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback"
undefined local variable or method `login_required' for #<OauthController:0x000001036a9268>
# ./spec/controllers/oauth_controller_spec.rb:146:in `block (4 levels) in <top (required)>'
34) OauthController 2.0 authorization code flow authorize
Failure/Error: post :authorize, :response_type=>"code",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x000001060f2cb8>
# ./spec/controllers/oauth_controller_spec.rb:160:in `block (4 levels) in <top (required)>'
35) OauthController 2.0 authorization code flow authorize should set user on verification token
Failure/Error: post :authorize, :response_type=>"code",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x000001060cde18>
# ./spec/controllers/oauth_controller_spec.rb:160:in `block (4 levels) in <top (required)>'
36) OauthController 2.0 authorization code flow authorize should set redirect_url
Failure/Error: post :authorize, :response_type=>"code",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x0000010609f1a8>
# ./spec/controllers/oauth_controller_spec.rb:160:in `block (4 levels) in <top (required)>'
37) OauthController 2.0 authorization code flow authorize should redirect to default callback
Failure/Error: post :authorize, :response_type=>"code",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x00000106077680>
# ./spec/controllers/oauth_controller_spec.rb:160:in `block (4 levels) in <top (required)>'
38) OauthController 2.0 authorization code flow authorize get token
Failure/Error: post :authorize, :response_type=>"code",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x0000010604aab8>
# ./spec/controllers/oauth_controller_spec.rb:160:in `block (4 levels) in <top (required)>'
39) OauthController 2.0 authorization code flow authorize get token
Failure/Error: post :authorize, :response_type=>"code",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x00000106020b78>
# ./spec/controllers/oauth_controller_spec.rb:160:in `block (4 levels) in <top (required)>'
40) OauthController 2.0 authorization code flow authorize get token should have added a new token
Failure/Error: post :authorize, :response_type=>"code",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x000001053b0c08>
# ./spec/controllers/oauth_controller_spec.rb:160:in `block (4 levels) in <top (required)>'
41) OauthController 2.0 authorization code flow authorize get token should set user to current user
Failure/Error: post :authorize, :response_type=>"code",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x000001053841a8>
# ./spec/controllers/oauth_controller_spec.rb:160:in `block (4 levels) in <top (required)>'
42) OauthController 2.0 authorization code flow authorize get token should return json token
Failure/Error: post :authorize, :response_type=>"code",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x0000010535d080>
# ./spec/controllers/oauth_controller_spec.rb:160:in `block (4 levels) in <top (required)>'
43) OauthController 2.0 authorization code flow authorize get token with wrong secret should not create token
Failure/Error: post :authorize, :response_type=>"code",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x000001052a1308>
# ./spec/controllers/oauth_controller_spec.rb:160:in `block (4 levels) in <top (required)>'
44) OauthController 2.0 authorization code flow authorize get token with wrong secret should return incorrect_client_credentials error
Failure/Error: post :authorize, :response_type=>"code",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x0000010608b158>
# ./spec/controllers/oauth_controller_spec.rb:160:in `block (4 levels) in <top (required)>'
45) OauthController 2.0 authorization code flow authorize get token with wrong code should not create token
Failure/Error: post :authorize, :response_type=>"code",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x000001060efa40>
# ./spec/controllers/oauth_controller_spec.rb:160:in `block (4 levels) in <top (required)>'
46) OauthController 2.0 authorization code flow authorize get token with wrong code should return incorrect_client_credentials error
Failure/Error: post :authorize, :response_type=>"code",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x000001060ca330>
# ./spec/controllers/oauth_controller_spec.rb:160:in `block (4 levels) in <top (required)>'
47) OauthController 2.0 authorization code flow authorize get token with wrong redirect_url should not create token
Failure/Error: post :authorize, :response_type=>"code",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x00000106099758>
# ./spec/controllers/oauth_controller_spec.rb:160:in `block (4 levels) in <top (required)>'
48) OauthController 2.0 authorization code flow authorize get token with wrong redirect_url should return incorrect_client_credentials error
Failure/Error: post :authorize, :response_type=>"code",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x0000010606caa0>
# ./spec/controllers/oauth_controller_spec.rb:160:in `block (4 levels) in <top (required)>'
49) OauthController 2.0 authorization code flow deny
Failure/Error: post :authorize, :response_type=>"code", :client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"0"
undefined local variable or method `login_required' for #<OauthController:0x0000010603ff28>
# ./spec/controllers/oauth_controller_spec.rb:249:in `block (4 levels) in <top (required)>'
50) OauthController 2.0 authorization code flow deny should redirect to default callback
Failure/Error: post :authorize, :response_type=>"code", :client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"0"
undefined local variable or method `login_required' for #<OauthController:0x00000106016560>
# ./spec/controllers/oauth_controller_spec.rb:249:in `block (4 levels) in <top (required)>'
51) OauthController 2.0 authorization token flow authorize redirect should render authorize
Failure/Error: get :authorize, :response_type=>"token",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback"
undefined local variable or method `login_required' for #<OauthController:0x000001053a5150>
# ./spec/controllers/oauth_controller_spec.rb:272:in `block (4 levels) in <top (required)>'
52) OauthController 2.0 authorization token flow authorize redirect should not create token
Failure/Error: get :authorize, :response_type=>"token",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback"
undefined local variable or method `login_required' for #<OauthController:0x00000106104c10>
# ./spec/controllers/oauth_controller_spec.rb:272:in `block (4 levels) in <top (required)>'
53) OauthController 2.0 authorization token flow authorize should redirect to default callback
Failure/Error: post :authorize, :response_type=>"token",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x000001060db978>
# ./spec/controllers/oauth_controller_spec.rb:286:in `block (4 levels) in <top (required)>'
54) OauthController 2.0 authorization token flow authorize should not have a scope
Failure/Error: post :authorize, :response_type=>"token",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x000001060a8578>
# ./spec/controllers/oauth_controller_spec.rb:286:in `block (4 levels) in <top (required)>'
55) OauthController 2.0 authorization token flow authorize
Failure/Error: post :authorize, :response_type=>"token",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x0000010607a678>
# ./spec/controllers/oauth_controller_spec.rb:286:in `block (4 levels) in <top (required)>'
56) OauthController 2.0 authorization token flow authorize
Failure/Error: post :authorize, :response_type=>"token",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x00000106047980>
# ./spec/controllers/oauth_controller_spec.rb:286:in `block (4 levels) in <top (required)>'
57) OauthController 2.0 authorization token flow authorize should set user to current user
Failure/Error: post :authorize, :response_type=>"token",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x000001060184f0>
# ./spec/controllers/oauth_controller_spec.rb:286:in `block (4 levels) in <top (required)>'
58) OauthController 2.0 authorization token flow authorize should have added a new token
Failure/Error: post :authorize, :response_type=>"token",:client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"1"
undefined local variable or method `login_required' for #<OauthController:0x000001053a0e70>
# ./spec/controllers/oauth_controller_spec.rb:286:in `block (4 levels) in <top (required)>'
59) OauthController 2.0 authorization token flow deny
Failure/Error: post :authorize, :response_type=>"token", :client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"0"
undefined local variable or method `login_required' for #<OauthController:0x00000105370b30>
# ./spec/controllers/oauth_controller_spec.rb:312:in `block (4 levels) in <top (required)>'
60) OauthController 2.0 authorization token flow deny should redirect to default callback
Failure/Error: post :authorize, :response_type=>"token", :client_id=>current_client_application.key, :redirect_url=>"http://application/callback",:authorize=>"0"
undefined local variable or method `login_required' for #<OauthController:0x000001052c8b38>
# ./spec/controllers/oauth_controller_spec.rb:312:in `block (4 levels) in <top (required)>'
61) OauthController oauth2 token for autonomous client_application
Failure/Error: it { should_not be_nil }
expected not nil, got nil
# ./spec/controllers/oauth_controller_spec.rb:334:in `block (3 levels) in <top (required)>'
62) OauthController oauth2 token for autonomous client_application
Failure/Error: it { should be_authorized }
undefined method `authorized?' for nil:NilClass
# ./spec/controllers/oauth_controller_spec.rb:335:in `block (3 levels) in <top (required)>'
63) OauthController oauth2 token for autonomous client_application should set user to client_applications user
Failure/Error: @token.user.should==current_client_application.user
undefined method `user' for nil:NilClass
# ./spec/controllers/oauth_controller_spec.rb:337:in `block (3 levels) in <top (required)>'
64) OauthController oauth2 token for autonomous client_application should have added a new token
Failure/Error: Oauth2Token.count.should==@oauth2_token_count+1
expected: 1,
got: 0 (using ==)
# ./spec/controllers/oauth_controller_spec.rb:340:in `block (3 levels) in <top (required)>'
65) OauthController oauth2 token for autonomous client_application should return json token
Failure/Error: JSON.parse(response.body).should=={"access_token"=>@token.token}
undefined method `token' for nil:NilClass
# ./spec/controllers/oauth_controller_spec.rb:344:in `block (3 levels) in <top (required)>'
66) OauthController oauth2 token for basic credentials
Failure/Error: post :token, :grant_type=>"password", :client_id=>current_client_application.key,:client_secret=>current_client_application.secret, :username=>current_user.login, :password=>"password"
undefined method `login' for #<User:0x000001014c5138>
# ./spec/controllers/oauth_controller_spec.rb:371:in `block (3 levels) in <top (required)>'
67) OauthController oauth2 token for basic credentials
Failure/Error: post :token, :grant_type=>"password", :client_id=>current_client_application.key,:client_secret=>current_client_application.secret, :username=>current_user.login, :password=>"password"
undefined method `login' for #<User:0x00000106077f40>
# ./spec/controllers/oauth_controller_spec.rb:371:in `block (3 levels) in <top (required)>'
68) OauthController oauth2 token for basic credentials should set user to client_applications user
Failure/Error: post :token, :grant_type=>"password", :client_id=>current_client_application.key,:client_secret=>current_client_application.secret, :username=>current_user.login, :password=>"password"
undefined method `login' for #<User:0x00000106106858>
# ./spec/controllers/oauth_controller_spec.rb:371:in `block (3 levels) in <top (required)>'
69) OauthController oauth2 token for basic credentials should have added a new token
Failure/Error: post :token, :grant_type=>"password", :client_id=>current_client_application.key,:client_secret=>current_client_application.secret, :username=>current_user.login, :password=>"password"
undefined method `login' for #<User:0x000001060ebaf8>
# ./spec/controllers/oauth_controller_spec.rb:371:in `block (3 levels) in <top (required)>'
70) OauthController oauth2 token for basic credentials should return json token
Failure/Error: post :token, :grant_type=>"password", :client_id=>current_client_application.key,:client_secret=>current_client_application.secret, :username=>current_user.login, :password=>"password"
undefined method `login' for #<User:0x000001060d0438>
# ./spec/controllers/oauth_controller_spec.rb:371:in `block (3 levels) in <top (required)>'
71) OauthController oauth2 token for basic credentials with wrong password should not have added a new token
Failure/Error: post :token, :grant_type=>"password", :client_id=>current_client_application.key,:client_secret=>current_client_application.secret, :username=>current_user.login, :password=>"bad"
undefined method `login' for #<User:0x000001060b0890>
# ./spec/controllers/oauth_controller_spec.rb:395:in `block (3 levels) in <top (required)>'
72) OauthController oauth2 token for basic credentials with wrong password should return json token
Failure/Error: post :token, :grant_type=>"password", :client_id=>current_client_application.key,:client_secret=>current_client_application.secret, :username=>current_user.login, :password=>"bad"
undefined method `login' for #<User:0x00000106091918>
# ./spec/controllers/oauth_controller_spec.rb:395:in `block (3 levels) in <top (required)>'
73) OauthController oauth2 token for basic credentials with unknown user should not have added a new token
Failure/Error: post :token, :grant_type=>"password", :client_id=>current_client_application.key,:client_secret=>current_client_application.secret, :username=>"non existent", :password=>"password"
undefined method `authenticate' for #<Class:0x000001012ebf10>
# ./spec/controllers/oauth_controller_spec.rb:411:in `block (3 levels) in <top (required)>'
74) OauthController oauth2 token for basic credentials with unknown user should return json token
Failure/Error: post :token, :grant_type=>"password", :client_id=>current_client_application.key,:client_secret=>current_client_application.secret, :username=>"non existent", :password=>"password"
undefined method `authenticate' for #<Class:0x000001012ebf10>
# ./spec/controllers/oauth_controller_spec.rb:411:in `block (3 levels) in <top (required)>'
75) OauthController getting an access token should have a verifier
Failure/Error: request_token.reload
Couldn't find RequestToken without an ID
# ./spec/controllers/oauth_controller_spec.rb:426:in `block (3 levels) in <top (required)>'
76) OauthController getting an access token should be authorized
Failure/Error: request_token.reload
Couldn't find RequestToken without an ID
# ./spec/controllers/oauth_controller_spec.rb:426:in `block (3 levels) in <top (required)>'
77) OauthController getting an access token should be successful
Failure/Error: request_token.reload
Couldn't find RequestToken without an ID
# ./spec/controllers/oauth_controller_spec.rb:426:in `block (3 levels) in <top (required)>'
78) OauthController getting an access token should request token from client_application
Failure/Error: request_token.reload
Couldn't find RequestToken without an ID
# ./spec/controllers/oauth_controller_spec.rb:426:in `block (3 levels) in <top (required)>'
79) OauthController getting an access token should return token string
Failure/Error: request_token.reload
Couldn't find RequestToken without an ID
# ./spec/controllers/oauth_controller_spec.rb:426:in `block (3 levels) in <top (required)>'
80) OauthController getting an access token access token should have user set
Failure/Error: request_token.reload
Couldn't find RequestToken without an ID
# ./spec/controllers/oauth_controller_spec.rb:426:in `block (3 levels) in <top (required)>'
81) OauthController getting an access token access token should be authorized
Failure/Error: request_token.reload
Couldn't find RequestToken without an ID
# ./spec/controllers/oauth_controller_spec.rb:426:in `block (3 levels) in <top (required)>'
82) OauthController invalidate should be a success
Failure/Error: get :invalidate
No route matches {:controller=>"oauth", :action=>"invalidate"}
# ./spec/controllers/oauth_controller_spec.rb:477:in `block (3 levels) in <top (required)>'
83) OauthorizedController access control oauth 10a request token signed should disallow oauth using RequestToken when using oauth_required
Failure/Error: get :token
No route matches {:controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:554:in `block (4 levels) in <top (required)>'
84) OauthorizedController access control oauth 10a access token signed accessing Interactive should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:567:in `block (6 levels) in <top (required)>'
85) OauthorizedController access control oauth 10a access token signed accessing Interactive should not set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:567:in `block (6 levels) in <top (required)>'
86) OauthorizedController access control oauth 10a access token signed accessing Interactive should not set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:567:in `block (6 levels) in <top (required)>'
87) OauthorizedController access control oauth 10a access token signed accessing Interactive should not set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:567:in `block (6 levels) in <top (required)>'
88) OauthorizedController access control oauth 10a access token signed accessing Two legged should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:567:in `block (6 levels) in <top (required)>'
89) OauthorizedController access control oauth 10a access token signed accessing Two legged should not set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:567:in `block (6 levels) in <top (required)>'
90) OauthorizedController access control oauth 10a access token signed accessing Two legged should not set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:567:in `block (6 levels) in <top (required)>'
91) OauthorizedController access control oauth 10a access token signed accessing Two legged should not set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:567:in `block (6 levels) in <top (required)>'
92) OauthorizedController access control oauth 10a access token signed accessing Interactive and two legged should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:567:in `block (6 levels) in <top (required)>'
93) OauthorizedController access control oauth 10a access token signed accessing Interactive and two legged should not set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:567:in `block (6 levels) in <top (required)>'
94) OauthorizedController access control oauth 10a access token signed accessing Interactive and two legged should not set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:567:in `block (6 levels) in <top (required)>'
95) OauthorizedController access control oauth 10a access token signed accessing Interactive and two legged should not set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:567:in `block (6 levels) in <top (required)>'
96) OauthorizedController access control oauth 10a access token signed accessing Token should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
97) OauthorizedController access control oauth 10a access token signed accessing Token should set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
98) OauthorizedController access control oauth 10a access token signed accessing Token should set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
99) OauthorizedController access control oauth 10a access token signed accessing Token should set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
100) OauthorizedController access control oauth 10a access token signed accessing Interactive and token should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
101) OauthorizedController access control oauth 10a access token signed accessing Interactive and token should set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
102) OauthorizedController access control oauth 10a access token signed accessing Interactive and token should set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
103) OauthorizedController access control oauth 10a access token signed accessing Interactive and token should set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
104) OauthorizedController access control oauth 10a access token signed accessing All should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
105) OauthorizedController access control oauth 10a access token signed accessing All should set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
106) OauthorizedController access control oauth 10a access token signed accessing All should set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
107) OauthorizedController access control oauth 10a access token signed accessing All should set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
108) OauthorizedController access control oauth 10a access token signed accessing Token legacy should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
109) OauthorizedController access control oauth 10a access token signed accessing Token legacy should set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
110) OauthorizedController access control oauth 10a access token signed accessing Token legacy should set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
111) OauthorizedController access control oauth 10a access token signed accessing Token legacy should set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
112) OauthorizedController access control oauth 10a access token signed accessing Both legacy should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
113) OauthorizedController access control oauth 10a access token signed accessing Both legacy should set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
114) OauthorizedController access control oauth 10a access token signed accessing Both legacy should set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
115) OauthorizedController access control oauth 10a access token signed accessing Both legacy should set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:591:in `block (6 levels) in <top (required)>'
116) OauthorizedController access control oauth 10a 2 legged accessing Token should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
117) OauthorizedController access control oauth 10a 2 legged accessing Token should not set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
118) OauthorizedController access control oauth 10a 2 legged accessing Token should not set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
119) OauthorizedController access control oauth 10a 2 legged accessing Token should not set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
120) OauthorizedController access control oauth 10a 2 legged accessing Interactive and token should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
121) OauthorizedController access control oauth 10a 2 legged accessing Interactive and token should not set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
122) OauthorizedController access control oauth 10a 2 legged accessing Interactive and token should not set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
123) OauthorizedController access control oauth 10a 2 legged accessing Interactive and token should not set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
124) OauthorizedController access control oauth 10a 2 legged accessing Interactive should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
125) OauthorizedController access control oauth 10a 2 legged accessing Interactive should not set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
126) OauthorizedController access control oauth 10a 2 legged accessing Interactive should not set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
127) OauthorizedController access control oauth 10a 2 legged accessing Interactive should not set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
128) OauthorizedController access control oauth 10a 2 legged accessing Token legacy should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
129) OauthorizedController access control oauth 10a 2 legged accessing Token legacy should not set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
130) OauthorizedController access control oauth 10a 2 legged accessing Token legacy should not set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
131) OauthorizedController access control oauth 10a 2 legged accessing Token legacy should not set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
132) OauthorizedController access control oauth 10a 2 legged accessing Both legacy should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
133) OauthorizedController access control oauth 10a 2 legged accessing Both legacy should not set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
134) OauthorizedController access control oauth 10a 2 legged accessing Both legacy should not set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
135) OauthorizedController access control oauth 10a 2 legged accessing Both legacy should not set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:621:in `block (6 levels) in <top (required)>'
136) OauthorizedController access control oauth 10a 2 legged accessing Two legged should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:645:in `block (6 levels) in <top (required)>'
137) OauthorizedController access control oauth 10a 2 legged accessing Two legged should not set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:645:in `block (6 levels) in <top (required)>'
138) OauthorizedController access control oauth 10a 2 legged accessing Two legged should set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:645:in `block (6 levels) in <top (required)>'
139) OauthorizedController access control oauth 10a 2 legged accessing Two legged should set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:645:in `block (6 levels) in <top (required)>'
140) OauthorizedController access control oauth 10a 2 legged accessing Interactive and two legged should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:645:in `block (6 levels) in <top (required)>'
141) OauthorizedController access control oauth 10a 2 legged accessing Interactive and two legged should not set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:645:in `block (6 levels) in <top (required)>'
142) OauthorizedController access control oauth 10a 2 legged accessing Interactive and two legged should set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:645:in `block (6 levels) in <top (required)>'
143) OauthorizedController access control oauth 10a 2 legged accessing Interactive and two legged should set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:645:in `block (6 levels) in <top (required)>'
144) OauthorizedController access control oauth 10a 2 legged accessing All should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:645:in `block (6 levels) in <top (required)>'
145) OauthorizedController access control oauth 10a 2 legged accessing All should not set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:645:in `block (6 levels) in <top (required)>'
146) OauthorizedController access control oauth 10a 2 legged accessing All should set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:645:in `block (6 levels) in <top (required)>'
147) OauthorizedController access control oauth 10a 2 legged accessing All should set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:645:in `block (6 levels) in <top (required)>'
148) OauthorizedController access control oauth 2.0 authorize header should include headers
Failure/Error: get :interactive_and_token
No route matches {:controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:680:in `block (4 levels) in <top (required)>'
149) OauthorizedController access control oauth 2.0 authorize header accessing Interactive should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
150) OauthorizedController access control oauth 2.0 authorize header accessing Interactive should not set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
151) OauthorizedController access control oauth 2.0 authorize header accessing Interactive should not set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
152) OauthorizedController access control oauth 2.0 authorize header accessing Interactive should not set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
153) OauthorizedController access control oauth 2.0 authorize header accessing Two legged should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
154) OauthorizedController access control oauth 2.0 authorize header accessing Two legged should not set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
155) OauthorizedController access control oauth 2.0 authorize header accessing Two legged should not set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
156) OauthorizedController access control oauth 2.0 authorize header accessing Two legged should not set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
157) OauthorizedController access control oauth 2.0 authorize header accessing Interactive and two legged should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
158) OauthorizedController access control oauth 2.0 authorize header accessing Interactive and two legged should not set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
159) OauthorizedController access control oauth 2.0 authorize header accessing Interactive and two legged should not set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
160) OauthorizedController access control oauth 2.0 authorize header accessing Interactive and two legged should not set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
161) OauthorizedController access control oauth 2.0 authorize header accessing Token legacy should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
162) OauthorizedController access control oauth 2.0 authorize header accessing Token legacy should not set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
163) OauthorizedController access control oauth 2.0 authorize header accessing Token legacy should not set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
164) OauthorizedController access control oauth 2.0 authorize header accessing Token legacy should not set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
165) OauthorizedController access control oauth 2.0 authorize header accessing Both legacy should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
166) OauthorizedController access control oauth 2.0 authorize header accessing Both legacy should not set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
167) OauthorizedController access control oauth 2.0 authorize header accessing Both legacy should not set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
168) OauthorizedController access control oauth 2.0 authorize header accessing Both legacy should not set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:687:in `block (6 levels) in <top (required)>'
169) OauthorizedController access control oauth 2.0 authorize header accessing Token should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:711:in `block (6 levels) in <top (required)>'
170) OauthorizedController access control oauth 2.0 authorize header accessing Token should set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:711:in `block (6 levels) in <top (required)>'
171) OauthorizedController access control oauth 2.0 authorize header accessing Token should set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:711:in `block (6 levels) in <top (required)>'
172) OauthorizedController access control oauth 2.0 authorize header accessing Token should set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:711:in `block (6 levels) in <top (required)>'
173) OauthorizedController access control oauth 2.0 authorize header accessing Interactive and token should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:711:in `block (6 levels) in <top (required)>'
174) OauthorizedController access control oauth 2.0 authorize header accessing Interactive and token should set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:711:in `block (6 levels) in <top (required)>'
175) OauthorizedController access control oauth 2.0 authorize header accessing Interactive and token should set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:711:in `block (6 levels) in <top (required)>'
176) OauthorizedController access control oauth 2.0 authorize header accessing Interactive and token should set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:711:in `block (6 levels) in <top (required)>'
177) OauthorizedController access control oauth 2.0 authorize header accessing All should not be a success
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:711:in `block (6 levels) in <top (required)>'
178) OauthorizedController access control oauth 2.0 authorize header accessing All should set current_token
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:711:in `block (6 levels) in <top (required)>'
179) OauthorizedController access control oauth 2.0 authorize header accessing All should set current_client_application
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:711:in `block (6 levels) in <top (required)>'
180) OauthorizedController access control oauth 2.0 authorize header accessing All should set current_user
Failure/Error: get action
No route matches {:controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:711:in `block (6 levels) in <top (required)>'
181) OauthorizedController access control oauth 2.0 query string accessing Interactive should not be a success
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"QSjeepWIBroby3mdcY9K3jye68fhvrE41TAgHNzE", :controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
182) OauthorizedController access control oauth 2.0 query string accessing Interactive should not set current_token
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"JzLvBlgXVFrnhSSlpZMd5uUGgwFCkogiWwmVKs2g", :controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
183) OauthorizedController access control oauth 2.0 query string accessing Interactive should not set current_client_application
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"6aVGfWu5lZYrBdVsZu6lby5MoDgg3YnUyXWUOa60", :controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
184) OauthorizedController access control oauth 2.0 query string accessing Interactive should not set current_user
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"rEGTLnUB2daQvBYwiAmE98XwgaI1Irk0Re9vwFe9", :controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
185) OauthorizedController access control oauth 2.0 query string accessing Two legged should not be a success
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"xCygjq0stvs4f3dJpQRx0AnNE8zUpkULqUSOEmBz", :controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
186) OauthorizedController access control oauth 2.0 query string accessing Two legged should not set current_token
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"IydZpZr1kUplq2I28bZIdBtjcjRIy9vEKAYVFkvC", :controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
187) OauthorizedController access control oauth 2.0 query string accessing Two legged should not set current_client_application
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"eQoNmDm8Wndd3mfsgmf8RVEUVRVersWJqTtQnftx", :controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
188) OauthorizedController access control oauth 2.0 query string accessing Two legged should not set current_user
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"EyqE8jObSkYTjcIYghAiScgBjusRXlUKDKYq81wM", :controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
189) OauthorizedController access control oauth 2.0 query string accessing Interactive and two legged should not be a success
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"Z6VBveP10jX1cWY983fkHPJa5DB08u9tNvrXDyGD", :controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
190) OauthorizedController access control oauth 2.0 query string accessing Interactive and two legged should not set current_token
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"vKrBDrQliBePHBvPa45LAGDsu9qmcaXYYVdtyVue", :controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
191) OauthorizedController access control oauth 2.0 query string accessing Interactive and two legged should not set current_client_application
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"3lqA6rsolH6ipXcH8646lWuNeF5aZTXvTcUvlUNG", :controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
192) OauthorizedController access control oauth 2.0 query string accessing Interactive and two legged should not set current_user
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"CWE92a3bP1HalYzhf438zCMxyCWu3l4wZ8R0lYTZ", :controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
193) OauthorizedController access control oauth 2.0 query string accessing Token legacy should not be a success
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"TjLiCX4fz17weEeKWsJ0DmekaoSsX1Zo8apPr2jp", :controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
194) OauthorizedController access control oauth 2.0 query string accessing Token legacy should not set current_token
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"v3mYyh4CKqlsDsGIPVnd7CU4s50ePnuFO7kzjOHu", :controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
195) OauthorizedController access control oauth 2.0 query string accessing Token legacy should not set current_client_application
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"2zLbEpn1SbVLEDb8McIkjMulMcwQtdf6v6oLItVc", :controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
196) OauthorizedController access control oauth 2.0 query string accessing Token legacy should not set current_user
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"9fGMkGHSdkRaouxC611Q5VX3SVKQXai7kDVB6g2H", :controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
197) OauthorizedController access control oauth 2.0 query string accessing Both legacy should not be a success
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"wMAFsgs3yUvmODOF501o1cDqwVlyErL8PlNrbFOy", :controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
198) OauthorizedController access control oauth 2.0 query string accessing Both legacy should not set current_token
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"lCVKMHHoO5CrwcEg3ZozZCysxr4lJxhnGUKInoid", :controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
199) OauthorizedController access control oauth 2.0 query string accessing Both legacy should not set current_client_application
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"3GhSCWrQLDuzCibkZGfaHZn8mgUtsEjsZf7ZsGmf", :controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
200) OauthorizedController access control oauth 2.0 query string accessing Both legacy should not set current_user
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"bXNWG87Ojtezjjh4tMVGhAPEe1AVOIXerqpsbOZt", :controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:737:in `block (6 levels) in <top (required)>'
201) OauthorizedController access control oauth 2.0 query string accessing Token should not be a success
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"HQY5bZfna0vhCkHt4E78oeH6MikNdYMN5cUYuFtr", :controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:761:in `block (6 levels) in <top (required)>'
202) OauthorizedController access control oauth 2.0 query string accessing Token should set current_token
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"E1QFD1tbwACmUfNP7ybyKuYdjtbPaqxg7e5g7gyD", :controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:761:in `block (6 levels) in <top (required)>'
203) OauthorizedController access control oauth 2.0 query string accessing Token should set current_client_application
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"KXPDEcoGZ3bCe2oEnH0GPQg82LchxNAr85LgByyG", :controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:761:in `block (6 levels) in <top (required)>'
204) OauthorizedController access control oauth 2.0 query string accessing Token should set current_user
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"8Oh9wbWLuDuMkrcb9Ev1XmQCpQkasQWPg1W3KgSw", :controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:761:in `block (6 levels) in <top (required)>'
205) OauthorizedController access control oauth 2.0 query string accessing Interactive and token should not be a success
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"cvHz372GgyGwxHUHBYv85Io55ELLHIspoDwehhMJ", :controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:761:in `block (6 levels) in <top (required)>'
206) OauthorizedController access control oauth 2.0 query string accessing Interactive and token should set current_token
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"L9zoln9twrwhB8UBuLlrxTe0FhoRDXTh40a9FC8D", :controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:761:in `block (6 levels) in <top (required)>'
207) OauthorizedController access control oauth 2.0 query string accessing Interactive and token should set current_client_application
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"C1CDUkNZ6dYMkvcS1hVkqoC4yw1mVuXYMWBi2S1F", :controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:761:in `block (6 levels) in <top (required)>'
208) OauthorizedController access control oauth 2.0 query string accessing Interactive and token should set current_user
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"KHVATOBMeQu5FO2xW2EdnoU0UbqAvFPmkX0quKsc", :controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:761:in `block (6 levels) in <top (required)>'
209) OauthorizedController access control oauth 2.0 query string accessing All should not be a success
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"W03pNBJlVnAVapiUWsV1sYbboU5YaGOcGyGyNXoo", :controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:761:in `block (6 levels) in <top (required)>'
210) OauthorizedController access control oauth 2.0 query string accessing All should set current_token
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"0nCZL3VGHyFzWiFXoaH0lpuO3FmLSJbQ9NeyEbsm", :controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:761:in `block (6 levels) in <top (required)>'
211) OauthorizedController access control oauth 2.0 query string accessing All should set current_client_application
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"a2jcWMtJ6TQnBT71p5TmqxtSMSZqsguSzmlW4BXg", :controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:761:in `block (6 levels) in <top (required)>'
212) OauthorizedController access control oauth 2.0 query string accessing All should set current_user
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"GGdfZY6BGka0F05e0ExWRPdeGjvziMdUWH0YOjaX", :controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:761:in `block (6 levels) in <top (required)>'
213) OauthorizedController access control logged in user accessing Token should not be a success
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"GwiooWa2tqljNAeblm6qWc6nn8Ei5HlnZ5RmoxfI", :controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:795:in `block (5 levels) in <top (required)>'
214) OauthorizedController access control logged in user accessing Token should not set current_token
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"D6d7N5674cpbAn37iVH5zLniOn6fil3ZFCUZhGkP", :controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:795:in `block (5 levels) in <top (required)>'
215) OauthorizedController access control logged in user accessing Token should not set current_client_application
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"IPmxICbPz0URWMpMqRIHAoJTa225JxEx7KPKameL", :controller=>"oauthorized", :action=>"token"}
# ./spec/controllers/oauth_controller_spec.rb:795:in `block (5 levels) in <top (required)>'
216) OauthorizedController access control logged in user accessing Two legged should not be a success
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"skXZkZgpILfxhcBKehUT5KTqw2GMeRIPPZ2lWO4V", :controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:795:in `block (5 levels) in <top (required)>'
217) OauthorizedController access control logged in user accessing Two legged should not set current_token
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"M7m9KgYPnVFai6eQheJtkVAJ3jVaKHZlMOL97Xs9", :controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:795:in `block (5 levels) in <top (required)>'
218) OauthorizedController access control logged in user accessing Two legged should not set current_client_application
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"YkP9TmslbiHo88Zq8EhehYSvCapGCfPRcBPEv8FA", :controller=>"oauthorized", :action=>"two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:795:in `block (5 levels) in <top (required)>'
219) OauthorizedController access control logged in user accessing Token legacy should not be a success
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"UxhX0SdpP5V2q2rNeILi6B3hZHHlFocaSWlgzIrh", :controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:795:in `block (5 levels) in <top (required)>'
220) OauthorizedController access control logged in user accessing Token legacy should not set current_token
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"qljHJOtjlly9pnmCByAzPzLXLwsTquny77a1J8hU", :controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:795:in `block (5 levels) in <top (required)>'
221) OauthorizedController access control logged in user accessing Token legacy should not set current_client_application
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"D8wQ1kl2m3o9KyiHAWRuHEClqAiglUqcktp8ie1C", :controller=>"oauthorized", :action=>"token_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:795:in `block (5 levels) in <top (required)>'
222) OauthorizedController access control logged in user accessing Interactive should not be a success
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"i6BtqZbIelUQm0Ldfd3zGYOV5DVDmiN2miWtWqT6", :controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
223) OauthorizedController access control logged in user accessing Interactive should not set current_token
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"r3OBESpOOpsmk3kgZF3bX5UW1p0A7X94GnIpKI9W", :controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
224) OauthorizedController access control logged in user accessing Interactive should not set current_client_application
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"9txF1bIFu58tTmOvQaiNK6pCHU2LsNV18qco53Ut", :controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
225) OauthorizedController access control logged in user accessing Interactive should set current_user
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"liDPJhVxrUnjN4mFNHyoVjW7KbOHkxVUOMy8kPH0", :controller=>"oauthorized", :action=>"interactive"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
226) OauthorizedController access control logged in user accessing Interactive and two legged should not be a success
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"fS1q1sBvXxrhEAN9pbr4GEV4jpl8e4q4QashC8eR", :controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
227) OauthorizedController access control logged in user accessing Interactive and two legged should not set current_token
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"wmkZRgB182HYUTZ5d8zEmXsVGkJ9hraCgExxEb18", :controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
228) OauthorizedController access control logged in user accessing Interactive and two legged should not set current_client_application
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"lLbSJAKhd0VF7wHfuFheOJYJCy2KKbLTYvonuDxB", :controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
229) OauthorizedController access control logged in user accessing Interactive and two legged should set current_user
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"HaadLbqzolLB7rm6KeWDzDhiyK71P1u5tCzg4MJZ", :controller=>"oauthorized", :action=>"interactive_and_two_legged"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
230) OauthorizedController access control logged in user accessing Interactive and token should not be a success
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"MB6JCKWHQ1gLaEXIuslJxp20IXWhPEKyY8NlN3bp", :controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
231) OauthorizedController access control logged in user accessing Interactive and token should not set current_token
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"g1a6WRceUj8MQDpisOjSY8LWHbBrTZY9XdBYyMcb", :controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
232) OauthorizedController access control logged in user accessing Interactive and token should not set current_client_application
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"RB04K9URPpDX4SEIljVV5rSiXvIVMQK02GdPP3EK", :controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
233) OauthorizedController access control logged in user accessing Interactive and token should set current_user
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"2BCGViuNiPxPT0B3HsqWOsfhg2c2Kc7cHgC0IoKf", :controller=>"oauthorized", :action=>"interactive_and_token"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
234) OauthorizedController access control logged in user accessing All should not be a success
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"uYZtA4TOP1ySAeC5z3zqU9QApXT6GTEZLAVbC60c", :controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
235) OauthorizedController access control logged in user accessing All should not set current_token
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"NOr7RetZtCcUyZIlVwWdBitjvcA2ZKV7lonjOy0n", :controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
236) OauthorizedController access control logged in user accessing All should not set current_client_application
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"7OPT5u0zpBxfnqdr2TVDy6j3g04I2z22JVTNl4do", :controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
237) OauthorizedController access control logged in user accessing All should set current_user
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"sXrkfkdW0H5J7hAqXFxmJONMw9MUPgz2ANjS1fJm", :controller=>"oauthorized", :action=>"all"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
238) OauthorizedController access control logged in user accessing Both legacy should not be a success
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"qwVnQIxetHFBY5lCIIH98NDiN15GdEmQLmK8ccR2", :controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
239) OauthorizedController access control logged in user accessing Both legacy should not set current_token
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"YwnTuXyYiaJn4LsNXdvILUCUu8PWXvfhFPwhdKsR", :controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
240) OauthorizedController access control logged in user accessing Both legacy should not set current_client_application
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"ynxzeNcl3f5ejP1N7Nmtal3vmFV68en1YZwboa5F", :controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
241) OauthorizedController access control logged in user accessing Both legacy should set current_user
Failure/Error: get action, :oauth_token=>access_token.token
No route matches {:oauth_token=>"PwMkrMRwmNi5nTeWUojH4XWEOgRwb5do5AlVYopu", :controller=>"oauthorized", :action=>"both_legacy"}
# ./spec/controllers/oauth_controller_spec.rb:816:in `block (5 levels) in <top (required)>'
242) ClientApplication should be valid
Failure/Error: @application.should be_valid
expected valid? to return true, got false
# ./spec/models/client_application_spec.rb:9:in `block (2 levels) in <top (required)>'
243) ClientApplication should not have errors
Failure/Error: @application.errors.full_messages.should == []
expected: [],
got: ["Name can't be blank", "Url can't be blank", "Url is invalid"] (using ==)
Diff:
@@ -1,2 +1,2 @@
-[]
+["Name can't be blank", "Url can't be blank", "Url is invalid"]
# ./spec/models/client_application_spec.rb:14:in `block (2 levels) in <top (required)>'
244) Oauth2Token should be valid
Failure/Error: @token.should be_valid
expected valid? to return true, got false
# ./spec/models/oauth2_token_spec.rb:10:in `block (2 levels) in <top (required)>'
245) Oauth2Token should be authorized
Failure/Error: @token.should be_authorized
expected authorized? to return true, got false
# ./spec/models/oauth2_token_spec.rb:22:in `block (2 levels) in <top (required)>'
246) Oauth2Verifier should be valid
Failure/Error: @verifier.should be_valid
expected valid? to return true, got false
# ./spec/models/oauth2_verifier_spec.rb:10:in `block (2 levels) in <top (required)>'
247) Oauth2Verifier exchange for oauth2 token should invalidate verifier
Failure/Error: @token = @verifier.exchange!
Validation failed: Client application can't be blank, User can't be blank
# ./app/models/oauth2_verifier.rb:6:in `block in exchange!'
# ./app/models/oauth2_verifier.rb:5:in `exchange!'
# ./spec/models/oauth2_verifier_spec.rb:31:in `block (3 levels) in <top (required)>'
248) Oauth2Verifier exchange for oauth2 token should set user on token
Failure/Error: @token = @verifier.exchange!
Validation failed: Client application can't be blank, User can't be blank
# ./app/models/oauth2_verifier.rb:6:in `block in exchange!'
# ./app/models/oauth2_verifier.rb:5:in `exchange!'
# ./spec/models/oauth2_verifier_spec.rb:31:in `block (3 levels) in <top (required)>'
249) Oauth2Verifier exchange for oauth2 token should set client application on token
Failure/Error: @token = @verifier.exchange!
Validation failed: Client application can't be blank, User can't be blank
# ./app/models/oauth2_verifier.rb:6:in `block in exchange!'
# ./app/models/oauth2_verifier.rb:5:in `exchange!'
# ./spec/models/oauth2_verifier_spec.rb:31:in `block (3 levels) in <top (required)>'
250) Oauth2Verifier exchange for oauth2 token should be authorized
Failure/Error: @token = @verifier.exchange!
Validation failed: Client application can't be blank, User can't be blank
# ./app/models/oauth2_verifier.rb:6:in `block in exchange!'
# ./app/models/oauth2_verifier.rb:5:in `exchange!'
# ./spec/models/oauth2_verifier_spec.rb:31:in `block (3 levels) in <top (required)>'
251) Oauth2Verifier exchange for oauth2 token should not be invalidated
Failure/Error: @token = @verifier.exchange!
Validation failed: Client application can't be blank, User can't be blank
# ./app/models/oauth2_verifier.rb:6:in `block in exchange!'
# ./app/models/oauth2_verifier.rb:5:in `exchange!'
# ./spec/models/oauth2_verifier_spec.rb:31:in `block (3 levels) in <top (required)>'
252) OauthNonce should be valid
Failure/Error: @oauth_nonce.should be_valid
undefined method `valid?' for false:FalseClass
# ./spec/models/oauth_nonce_spec.rb:10:in `block (2 levels) in <top (required)>'
253) OauthNonce should not have errors
Failure/Error: @oauth_nonce.errors.full_messages.should == []
undefined method `errors' for false:FalseClass
# ./spec/models/oauth_nonce_spec.rb:14:in `block (2 levels) in <top (required)>'
254) OauthNonce should not be a new record
Failure/Error: @oauth_nonce.should_not be_new_record
undefined method `persisted?' for false:FalseClass
# ./spec/models/oauth_nonce_spec.rb:18:in `block (2 levels) in <top (required)>'
255) OauthNonce should not allow a second one with the same values
Failure/Error: OauthNonce.remember(@oauth_nonce.nonce,@oauth_nonce.timestamp).should == false
undefined method `nonce' for false:FalseClass
# ./spec/models/oauth_nonce_spec.rb:22:in `block (2 levels) in <top (required)>'
256) RequestToken should be valid
Failure/Error: @token.should be_valid
expected valid? to return true, got false
# ./spec/models/oauth_token_spec.rb:10:in `block (2 levels) in <top (required)>'
257) RequestToken OAuth 1.0a with provided callback authorize request exchange for access token should be valid
Failure/Error: @access.should be_valid
expected valid? to return true, got false
# ./spec/models/oauth_token_spec.rb:85:in `block (6 levels) in <top (required)>'
258) RequestToken OAuth 1.0a with provided callback authorize request exchange for access token should have no error messages
Failure/Error: @access.errors.full_messages.should==[]
expected: [],
got: ["Client application can't be blank", "User can't be blank"] (using ==)
Diff:
@@ -1,2 +1,2 @@
-[]
+["Client application can't be blank", "User can't be blank"]
# ./spec/models/oauth_token_spec.rb:89:in `block (6 levels) in <top (required)>'
259) RequestToken OAuth 1.0a with provided callback authorize request exchange for access token should set user on access token
Failure/Error: @access.user.should == users(:quentin)
expected: #<User id: 12346, email: "quentin@quickleft.com", encrypted_password: "", password_salt: "", reset_password_token: nil, remember_token: nil, remember_created_at: nil, sign_in_count: 0, current_sign_in_at: nil, last_sign_in_at: nil, current_sign_in_ip: nil, last_sign_in_ip: nil, confirmation_token: nil, confirmed_at: nil, confirmation_sent_at: nil, authentication_token: nil, created_at: "2010-11-25 20:08:32", updated_at: "2010-11-25 20:08:32", name: "Quentin", cached_slug: nil, deleted_at: nil>,
got: nil (using ==)
# ./spec/models/oauth_token_spec.rb:97:in `block (6 levels) in <top (required)>'
260) RequestToken OAuth 1.0a with provided callback authorize request exchange for access token should authorize accesstoken
Failure/Error: @access.should be_authorized
expected authorized? to return true, got false
# ./spec/models/oauth_token_spec.rb:101:in `block (6 levels) in <top (required)>'
261) RequestToken OAuth 1.0a with oob callback authorize request exchange for access token should set user on access token
Failure/Error: @access.user.should == users(:quentin)
expected: #<User id: 12346, email: "quentin@quickleft.com", encrypted_password: "", password_salt: "", reset_password_token: nil, remember_token: nil, remember_created_at: nil, sign_in_count: 0, current_sign_in_at: nil, last_sign_in_at: nil, current_sign_in_ip: nil, last_sign_in_ip: nil, confirmation_token: nil, confirmed_at: nil, confirmation_sent_at: nil, authentication_token: nil, created_at: "2010-11-25 20:08:32", updated_at: "2010-11-25 20:08:32", name: "Quentin", cached_slug: nil, deleted_at: nil>,
got: nil (using ==)
# ./spec/models/oauth_token_spec.rb:189:in `block (6 levels) in <top (required)>'
262) RequestToken OAuth 1.0a with oob callback authorize request exchange for access token should authorize accesstoken
Failure/Error: @access.should be_authorized
expected authorized? to return true, got false
# ./spec/models/oauth_token_spec.rb:193:in `block (6 levels) in <top (required)>'
263) RequestToken OAuth 1.0 should be oauth10
Failure/Error: @token.should be_oauth10
expected oauth10? to return true, got nil
# ./spec/models/oauth_token_spec.rb:239:in `block (3 levels) in <top (required)>'
264) RequestToken OAuth 1.0 should return 1.0 style to_query
Failure/Error: @token.to_query.should=="oauth_token=#{@token.token}&oauth_token_secret=#{@token.secret}"
expected: "oauth_token=mPPyKvy4D8ZHrlzuFgFCiLerkucZvAJOq1sARcWx&oauth_token_secret=3nBLo2IhuqRaNXtt9BDs4p5REJpzOVQI5pQSjtub",
got: "oauth_token=mPPyKvy4D8ZHrlzuFgFCiLerkucZvAJOq1sARcWx&oauth_token_secret=3nBLo2IhuqRaNXtt9BDs4p5REJpzOVQI5pQSjtub&oauth_callback_confirmed=true" (using ==)
# ./spec/models/oauth_token_spec.rb:304:in `block (3 levels) in <top (required)>'
265) RequestToken OAuth 1.0 authorize request should not have verifier
Failure/Error: @token.verifier.should be_nil
expected nil, got "zQjOvSR8sj7bJrIChwzf"
# ./spec/models/oauth_token_spec.rb:264:in `block (4 levels) in <top (required)>'
266) RequestToken OAuth 1.0 authorize request exchange for access token should invalidate request token
Failure/Error: @token.should be_invalidated
expected invalidated? to return true, got false
# ./spec/models/oauth_token_spec.rb:274:in `block (5 levels) in <top (required)>'
267) RequestToken OAuth 1.0 authorize request exchange for access token should set user on access token
Failure/Error: @access.user.should == users(:quentin)
undefined method `user' for false:FalseClass
# ./spec/models/oauth_token_spec.rb:278:in `block (5 levels) in <top (required)>'
268) RequestToken OAuth 1.0 authorize request exchange for access token should authorize accesstoken
Failure/Error: @access.should be_authorized
undefined method `authorized?' for false:FalseClass
# ./spec/models/oauth_token_spec.rb:282:in `block (5 levels) in <top (required)>'
Finished in 12.63 seconds
326 examples, 268 failures
rake aborted!
ruby -S bundle exec rspec "./spec/controllers/admin/dashboard_controller_spec.rb" "./spec/controllers/admin/users_controller_spec.rb" "./spec/controllers/home_controller_spec.rb" "./spec/controllers/oauth_clients_controller_spec.rb" "./spec/controllers/oauth_controller_spec.rb" "./spec/models/client_application_spec.rb" "./spec/models/oauth2_token_spec.rb" "./spec/models/oauth2_verifier_spec.rb" "./spec/models/oauth_nonce_spec.rb" "./spec/models/oauth_token_spec.rb" failed
aaron:
id: 12345
name: Aaron
email: aaron@test.com
quentin:
id: 12346
name: Quentin
email: quentin@test.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment