We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 620633f commit e2d6c3fCopy full SHA for e2d6c3f
lib/generators/rspec/scaffold/templates/request_spec.rb
@@ -82,17 +82,10 @@
82
}.to change(<%= class_name %>, :count).by(0)
83
end
84
85
- <% if Rails.version.to_f < 6.1 || Rails.version == '6.1.0' %>
86
it "renders a successful response (i.e. to display the 'new' template)" do
87
post <%= index_helper %>_url, params: { <%= ns_file_name %>: invalid_attributes }
88
expect(response).to be_successful
89
90
- <% else %>
91
- it "renders a response with 422 status - unporcessable entity" do
92
- post <%= index_helper %>_url, params: { <%= ns_file_name %>: invalid_attributes }
93
- expect(response.status).to eq(422)
94
- end
95
- <% end %>
96
97
98
0 commit comments