Skip to content

Commit ba4874f

Browse files
authored
Merge pull request #1932 from riseshia/patch-1
Remove useless ivar assign in controller spec
2 parents 399a740 + 3d49324 commit ba4874f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/rspec/scaffold/templates/controller_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<% unless options[:singleton] -%>
4646
describe "GET #index" do
4747
it "returns a success response" do
48-
<%= file_name %> = <%= class_name %>.create! valid_attributes
48+
<%= class_name %>.create! valid_attributes
4949
<% if Rails::VERSION::STRING < '5.0' -%>
5050
get :index, {}, valid_session
5151
<% else -%>

0 commit comments

Comments
 (0)