Skip to content

Commit 997eede

Browse files
committed
Check for correct exception in spec
This exception was updated to provide a clearer reason for the failed auth.
1 parent e7a225e commit 997eede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/requests/api_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def headers_with_token(token)
1111

1212
describe "authenticatable resource", type: :request do
1313
it "will raise error if there is no token" do
14-
expect{get api_index_path}.to raise_error Kracken::Controllers::TokenUnauthorized
14+
expect{get api_index_path}.to raise_error Kracken::TokenUnauthorized
1515
end
1616

1717
it "is redirected to the oauth server if there is no current user" do

0 commit comments

Comments
 (0)