require "spec_helper"

describe Rdkafka::FFI do
  it "should load librdkafka" do
    expect(Rdkafka::FFI.ffi_libraries.map(&:name).first).to include "librdkafka"
  end

  it "should successfully call librdkafka" do
    expect {
      Rdkafka::FFI.rd_kafka_conf_new
    }.not_to raise_error
  end
end

require "spec_helper"

describe Rdkafka::FFI do
  it "should successfully call librdkafka" do
    Rdkafka::FFI.rd_kafka_conf_new
  end
end

--- 
+++ 
@@ -1,7 +1,13 @@
 require "spec_helper"
 
 describe Rdkafka::FFI do
+  it "should load librdkafka" do
+    expect(Rdkafka::FFI.ffi_libraries.map(&:name).first).to include "librdkafka"
+  end
+
   it "should successfully call librdkafka" do
-    Rdkafka::FFI.rd_kafka_conf_new
+    expect {
+      Rdkafka::FFI.rd_kafka_conf_new
+    }.not_to raise_error
   end
 end
Improve ffi spec a bit
