summaryrefslogtreecommitdiff
path: root/spec/ffi_yajl/map_library_name_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ffi_yajl/map_library_name_spec.rb')
-rw-r--r--spec/ffi_yajl/map_library_name_spec.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/spec/ffi_yajl/map_library_name_spec.rb b/spec/ffi_yajl/map_library_name_spec.rb
index 0b5e9cb..b9e9bfe 100644
--- a/spec/ffi_yajl/map_library_name_spec.rb
+++ b/spec/ffi_yajl/map_library_name_spec.rb
@@ -20,24 +20,24 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-require 'spec_helper'
+require "spec_helper"
class Test
extend FFI_Yajl::MapLibraryName
end
host_os_library_name_mapping = {
- "mingw" => [ "libyajl.so", "yajl.dll" ],
- "mswin" => [ "libyajl.so", "yajl.dll" ],
- "cygwin" => [ "libyajl.so", "cygyajl.dll" ],
- "darwin" => [ "libyajl.bundle", "libyajl.dylib" ],
- "solaris2" => [ "libyajl.so" ],
- "linux" => [ "libyajl.so" ],
- "aix" => [ "libyajl.so" ],
- "hpux" => [ "libyajl.so" ],
- "netbsd" => [ "libyajl.so" ],
- "openbsd" => [ "libyajl.so" ],
- "freebsd" => [ "libyajl.so" ],
+ "mingw" => ["libyajl.so", "yajl.dll"],
+ "mswin" => ["libyajl.so", "yajl.dll"],
+ "cygwin" => ["libyajl.so", "cygyajl.dll"],
+ "darwin" => ["libyajl.bundle", "libyajl.dylib"],
+ "solaris2" => ["libyajl.so"],
+ "linux" => ["libyajl.so"],
+ "aix" => ["libyajl.so"],
+ "hpux" => ["libyajl.so"],
+ "netbsd" => ["libyajl.so"],
+ "openbsd" => ["libyajl.so"],
+ "freebsd" => ["libyajl.so"]
}
describe "FFI_Yajl::MapLibraryName" do
@@ -107,7 +107,7 @@ describe "FFI_Yajl::MapLibraryName" do
allow(File).to receive(:file?).with(path).and_return(true)
allow(Test).to receive(:ffi_lib).with(path).and_raise(LoadError)
end
- allow(Test).to receive(:ffi_lib).with('yajl').and_return(nil)
+ allow(Test).to receive(:ffi_lib).with("yajl").and_return(nil)
Test.send(:ffi_open_yajl_library)
end
end