Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 5394454

Browse files
committed
Debug ffi
1 parent b19bbd8 commit 5394454

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

spec/support/aruba_support.rb

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
module ArubaLoader
22
extend RSpec::Support::WithIsolatedStdErr
3-
with_isolated_stderr do
4-
require 'aruba/api'
5-
end
3+
#with_isolated_stderr do
4+
begin
5+
puts "FFI? #{defined?(FFI).inspect}"
6+
require 'aruba/api'
7+
rescue NameError
8+
puts "require: #{require('ffi').inspect}"
9+
puts "Post require FFI? #{defined?(FFI).inspect}"
10+
require 'aruba/api'
11+
end
12+
#end
613
end
714

815
RSpec.shared_context "aruba support" do

0 commit comments

Comments
 (0)