Enable RSpec/ExpectActual cop and fix all issues

Always use a variable and not a literal as `expect` argument

Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExpectActual
This commit is contained in:
Bertocq
2018-01-07 01:38:33 +01:00
parent 0698043340
commit f6aed3f9f1
9 changed files with 128 additions and 100 deletions

View File

@@ -74,4 +74,7 @@ RSpec/ExampleLength:
Enabled: false
RSpec/ExampleWording:
Enabled: true
RSpec/ExpectActual:
Enabled: true