Skip to content

Commit

Permalink
Fix failing on MRI 3.3 specs
Browse files Browse the repository at this point in the history
  • Loading branch information
viralpraxis committed Sep 22, 2024
1 parent 61b2f88 commit 3026b18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down Expand Up @@ -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}")
Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3026b18

Please sign in to comment.