From e61a723d062cb780fb3761118d01d4ff089b5f14 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Tue, 12 Nov 2013 22:16:45 +0100 Subject: [PATCH] Fix scoping spec After bundle update 403 error was returned after unsuccessful scopes check. This is actually a proper behaviour, so I'm changing test to reflect this test. --- spec/integration/scopes_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/integration/scopes_spec.rb b/spec/integration/scopes_spec.rb index f06fd4db..8ab3d9de 100644 --- a/spec/integration/scopes_spec.rb +++ b/spec/integration/scopes_spec.rb @@ -31,7 +31,7 @@ describe 'App' do token = Travis::Api::App::AccessToken.new(app_id: 1, user_id: 2, scopes: [:baz]).tap(&:save) response = get '/foo/1/bar', {}, 'HTTP_ACCEPT' => 'application/json; version=2', 'HTTP_AUTHORIZATION' => "token #{token.token}" - response.status.should == 404 + response.status.should == 403 end it 'checks if required_params match the from the request' do