We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb10856 commit 4a8b994Copy full SHA for 4a8b994
spec/ruby/library/rbconfig/rbconfig_spec.rb
@@ -42,6 +42,15 @@
42
RUBY
43
end
44
45
+ it "['LIBRUBY'] is the same as LIBRUBY_SO if and only if ENABLE_SHARED" do
46
+ case RbConfig::CONFIG['ENABLE_SHARED']
47
+ when 'yes'
48
+ RbConfig::CONFIG['LIBRUBY'].should == RbConfig::CONFIG['LIBRUBY_SO']
49
+ when 'no'
50
+ RbConfig::CONFIG['LIBRUBY'].should_not == RbConfig::CONFIG['LIBRUBY_SO']
51
+ end
52
53
+
54
guard -> { RbConfig::TOPDIR } do
55
it "libdir/LIBRUBY_SO is the path to libruby and it exists if and only if ENABLE_SHARED" do
56
libdirname = RbConfig::CONFIG['LIBPATHENV'] == 'PATH' ? 'bindir' :
0 commit comments