spec/support/expect_offense.rb in rubocop-rspec-1.32.0 vs spec/support/expect_offense.rb in rubocop-rspec-1.33.0
- old
+ new
@@ -1,12 +1,14 @@
+# frozen_string_literal: true
+
# rubocop-rspec gem extension of RuboCop's ExpectOffense module.
#
# This mixin is the same as rubocop's ExpectOffense except the default
# filename ends with `_spec.rb`
module ExpectOffense
include RuboCop::RSpec::ExpectOffense
- DEFAULT_FILENAME = 'example_spec.rb'.freeze
+ DEFAULT_FILENAME = 'example_spec.rb'
def expect_offense(source, filename = DEFAULT_FILENAME)
super
end