Skip to content

Commit 3d49324

Browse files
authored
Remove useless ivar assign in controller spec
This assignment is not necessary here.
1 parent 399a740 commit 3d49324

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)