spec/controllers/api_controller/authentification_spec.rb in apress-api-1.23.0 vs spec/controllers/api_controller/authentification_spec.rb in apress-api-1.24.0
- old
+ new
@@ -26,12 +26,12 @@
end
context "when auth failed" do
let(:auth_service) { double("auth_service", call: false, client: nil) }
- it "returns 403" do
+ it "returns 401" do
get :index
- expect(response.status).to eq 403
+ expect(response.status).to eq 401
expect(controller.current_api_client).to be nil
end
end
end
end