update test to make sure data is invalid

This commit is contained in:
James Smith committed 2026-01-22 22:57:29 +00:00
1 parent ba1849eacc
commit 8dd5bd1a4e
1 file changed
+1 -1
+1 -1
View File
@@ -131,7 +131,7 @@ RSpec.describe "Groups", :after_first_run do
end
it "gives a 422 response if the data is invalid" do
patch "/creators/#{creator.to_param}/groups/#{group.to_param}", params: {group: {name: nil}}
patch "/creators/#{creator.to_param}/groups/#{group.to_param}", params: {group: {name: " "}}
expect(response).to have_http_status :unprocessable_content
end
end