Merge pull request #7241 from MikeMcQuaid/integration_tests_only_system_ruby

integration_test: only run on system Ruby.
This commit is contained in:
Mike McQuaid 2020-03-31 08:44:59 +01:00 committed by GitHub
commit 14c8b8747b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,11 @@ RSpec::Matchers.define_negated_matcher :be_a_failure, :be_a_success
RSpec.shared_context "integration test" do
extend RSpec::Matchers::DSL
if OS.mac? &&
!RUBY_BIN.to_s.match?(%r{^/(System/Library/Frameworks/Ruby\.framework/Versions/(Current|\d+\.\d+)/)usr/bin$})
skip "integration test requires system Ruby"
end
matcher :be_a_success do
match do |actual|
status = actual.is_a?(Proc) ? actual.call : actual