We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 399a740 commit 3d49324Copy full SHA for 3d49324
lib/generators/rspec/scaffold/templates/controller_spec.rb
@@ -45,7 +45,7 @@
45
<% unless options[:singleton] -%>
46
describe "GET #index" do
47
it "returns a success response" do
48
- <%= file_name %> = <%= class_name %>.create! valid_attributes
+ <%= class_name %>.create! valid_attributes
49
<% if Rails::VERSION::STRING < '5.0' -%>
50
get :index, {}, valid_session
51
<% else -%>
0 commit comments