spec/shared/detects_style_behavior.rb in rubocop-rspec-1.32.0 vs spec/shared/detects_style_behavior.rb in rubocop-rspec-1.33.0
- old
+ new
@@ -1,4 +1,6 @@
+# frozen_string_literal: true
+
RSpec.shared_examples 'detects style' do |source, style, filename: 'x_spec.rb'|
it 'generates a todo based on the detected style' do
inspect_source(source, filename)
expect(cop.config_to_allow_offenses).to eq('EnforcedStyle' => style)