From 87e4a311bd104a5a62e41a955b06383df17ba2c5 Mon Sep 17 00:00:00 2001 From: Phil Pirozhkov Date: Mon, 15 Mar 2021 01:38:45 +0300 Subject: [PATCH] Clamp failing JRuby/Ruby 1.8 example --- spec/rspec/core/formatters/snippet_extractor_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/rspec/core/formatters/snippet_extractor_spec.rb b/spec/rspec/core/formatters/snippet_extractor_spec.rb index e002fa0880..53f80897e3 100644 --- a/spec/rspec/core/formatters/snippet_extractor_spec.rb +++ b/spec/rspec/core/formatters/snippet_extractor_spec.rb @@ -161,7 +161,7 @@ def another_expression(*) end end - argument_error_points_invoker = RSpec::Support::Ruby.jruby? && !RUBY_VERSION.start_with?('1.8.') + argument_error_points_invoker = RSpec::Support::Ruby.jruby? || RUBY_VERSION.start_with?('1.8.') context 'when the expression is a method definition and ends with "end"-only line', :skip => argument_error_points_invoker do let(:source) do obj = Object.new