summaryrefslogtreecommitdiff
path: root/spec/support/integration_specs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/integration_specs.rb')
-rw-r--r--spec/support/integration_specs.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/support/integration_specs.rb b/spec/support/integration_specs.rb
index ea0da53..431167d 100644
--- a/spec/support/integration_specs.rb
+++ b/spec/support/integration_specs.rb
@@ -1,10 +1,17 @@
+require File.expand_path('../../../lib/hashie/extensions/ruby_version', __FILE__)
+
# Generates the bundle command for running an integration test
#
# @param [String] integration the integration folder to run
# @param [String] command the command to run
# @return [String]
def integration_command(integration, command)
- "#{integration_gemfile(integration)} #{command}"
+ if Hashie::Extensions::RubyVersion.new(RUBY_VERSION) >=
+ Hashie::Extensions::RubyVersion.new('3.1.0')
+ ruby_opts = "RUBYOPT=--disable-error_highlight "
+ end
+
+ "#{ruby_opts}#{integration_gemfile(integration)} #{command}"
end
# Generates the Gemfile for an integration