Skip to content

Commit

Permalink
add support for FFI::Platform::LIBSUFFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuck Remes committed Aug 24, 2011
1 parent fcc1c03 commit e289758
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions spec/core/ffi/platform_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
require File.expand_path('../../../spec_helper', __FILE__)

describe "FFI::Platform::LIBSUFFIX" do
platform_is :linux do
it "returns .so" do
FFI::Platform::LIBSUFFIX.should == '.so'
end
end

platform_is :windows do
it "returns .dll" do
FFI::Platform::LIBSUFFIX.should == '.dll'
end
end

platform_is :darwin do
it "returns .dylib" do
FFI::Platform::LIBSUFFIX.should == '.dylib'
end
end
end

0 comments on commit e289758

Please sign in to comment.