1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00

Fix Lint/UselessAssignment

This commit is contained in:
Jared Beck 2016-02-15 20:35:01 -05:00
parent 1db9253d20
commit 4ab815a7cb
2 changed files with 0 additions and 6 deletions

View file

@ -1,11 +1,6 @@
# Remove these configuration records
# one by one as the offenses are removed from the code base.
# Offense count: 1
Lint/UselessAssignment:
Exclude:
- 'test/functional/controller_test.rb'
# Offense count: 1
Lint/Void:
Exclude:

View file

@ -35,7 +35,6 @@ class ControllerTest < ActionController::TestCase
w = assigns(:widget)
assert_equal 0, w.versions.length
delete :destroy, params_wrapper({ id: w.id })
widget = assigns(:widget)
assert_equal 0, PaperTrail::Version.with_item_keys('Widget', w.id).size
end