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.
2 parents 399a740 + 3d49324 commit ba4874fCopy full SHA for ba4874f
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