Skip to content

Commit 4a8b994

Browse files
committed
Spec RbConfig::CONFIG['LIBRUBY']
1 parent fb10856 commit 4a8b994

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spec/ruby/library/rbconfig/rbconfig_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@
4242
RUBY
4343
end
4444

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+
end
53+
4554
guard -> { RbConfig::TOPDIR } do
4655
it "libdir/LIBRUBY_SO is the path to libruby and it exists if and only if ENABLE_SHARED" do
4756
libdirname = RbConfig::CONFIG['LIBPATHENV'] == 'PATH' ? 'bindir' :

0 commit comments

Comments
 (0)