This commit is contained in:
Peter Bhat Harkins 2019-05-01 09:03:22 -05:00
parent 6104b13500
commit 8146418df0
1 changed files with 4 additions and 4 deletions

View File

@ -60,14 +60,14 @@ describe StoriesController do
it "throws a 400 if there's no URL present" do
expect {
post :check_url_dupe,
format: :json,
params: { story: { url: "" } }
format: :json,
params: { story: { url: "" } }
}.to raise_error(ActionController::ParameterMissing)
expect {
post :check_url_dupe,
format: :json,
params: { story: {} }
format: :json,
params: { story: {} }
}.to raise_error(ActionController::ParameterMissing)
end
end