Sha256: acb0f62f60e190878e3b2be03d2c9ed1c164181501dbaf68f4887163f8557d8f
Contents?: true
Size: 479 Bytes
Versions: 2
Compression:
Stored size: 479 Bytes
Contents
require "spec_helper" require "ffi" module LibyajlTestFFI extend ::FFI::Library libname = ::FFI.map_library_name("yajl") libpath = File.expand_path(File.join(Libyajl2.opt_path, libname)) ffi_lib libpath attach_function :yajl_gen_alloc, [:pointer], :pointer end describe "when loading the library with FFI" do it "we can get back an FFI::Pointer from yajl_gen_alloc" do expect(LibyajlTestFFI.yajl_gen_alloc(nil)).to be_an_instance_of(FFI::Pointer) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
libyajl2-2.1.0 | spec/ffi_spec.rb |
libyajl2-2.0.0 | spec/ffi_spec.rb |