Skip to content

Commit cf88808

Browse files
committed
fix
1 parent 7528c4b commit cf88808

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/requests/vendors_requests_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@
104104
describe "DELETE #destroy" do
105105
subject { delete vendor_path(id: create(:vendor)) }
106106
it "does not have a route for this" do
107-
expect { subject }.to raise_error(ActionController::RoutingError)
107+
subject
108+
expect(response.code).to eq('404')
108109
end
109110
end
110111

0 commit comments

Comments
 (0)