diff --git a/spec/rubocop/cop/thread_safety/mutable_class_instance_variable_spec.rb b/spec/rubocop/cop/thread_safety/mutable_class_instance_variable_spec.rb index 5927aed..bc6346b 100644 --- a/spec/rubocop/cop/thread_safety/mutable_class_instance_variable_spec.rb +++ b/spec/rubocop/cop/thread_safety/mutable_class_instance_variable_spec.rb @@ -282,7 +282,7 @@ def some_method it_behaves_like 'mutable objects', %("\#{a}") end - context 'when the frozen_string_literal comment is true' do + context 'when the frozen_string_literal comment is true', unsupported_on: :prism do let(:prefix) { "# frozen_string_literal: true\n#{super()}" } it_behaves_like 'immutable objects', %("\#{a}") @@ -605,7 +605,7 @@ def assignment? it_behaves_like 'mutable objects', %("\#{a}") end - context 'when the frozen_string_literal comment is true' do + context 'when the frozen_string_literal comment is true', unsupported_on: :prism do let(:prefix) { "# frozen_string_literal: true\n#{super()}" } it_behaves_like 'immutable objects', %("\#{a}") diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 23c2711..be1363f 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -39,6 +39,8 @@ config.fail_fast = ENV.key? 'RSPEC_FAIL_FAST' end + config.filter_run_excluding unsupported_on: :prism if ENV['PARSER_ENGINE'] == 'parser_prism' + config.disable_monkey_patching! config.order = :random