Check for 404 from spec rather than failure

This commit is contained in:
Robin Ward 2017-05-08 16:33:43 -04:00
parent addc85cd08
commit fc00032ec8
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ RSpec.describe "OmniAuth Callbacks" do
context "without an `omniauth.auth` env" do
it "should return a 404" do
get "/auth/eviltrout/callback"
expect(response).not_to be_success
expect(response.code).to eq("404")
end
end