Skip to content

Commit

Permalink
Fix broken specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Phill Sparks committed Dec 31, 2013
1 parent f38a4e9 commit 592352f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/controllers/protected_resources_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def index
end

it "does not allow if the token does not include given scope" do
token = double(Doorkeeper::AccessToken, :accessible? => true, :scopes => ['public'])
token = double(Doorkeeper::AccessToken, :accessible? => true, :scopes => ['public'], :revoked? => false, :expired? => false)
Doorkeeper::AccessToken.should_receive(:authenticate).with(token_string).and_return(token)
get :index, :access_token => token_string
expect(response.status).to eq 401
Expand Down
2 changes: 1 addition & 1 deletion spec/support/shared/controllers_shared_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
end

let :token do
double(Doorkeeper::AccessToken, :accessible? => false)
double(Doorkeeper::AccessToken, :accessible? => false, :revoked? => false, :expired? => false)
end

before :each do
Expand Down

0 comments on commit 592352f

Please sign in to comment.