summaryrefslogtreecommitdiff
path: root/spec/ffi/struct_callback_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ffi/struct_callback_spec.rb')
-rw-r--r--spec/ffi/struct_callback_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ffi/struct_callback_spec.rb b/spec/ffi/struct_callback_spec.rb
index 1e6d4be..50f1a70 100644
--- a/spec/ffi/struct_callback_spec.rb
+++ b/spec/ffi/struct_callback_spec.rb
@@ -53,7 +53,7 @@ describe FFI::Struct, ' with inline callback functions' do
ts = CallbackMember::TestStruct.new
ts[:add] = StructCallbacks.method(:add)
- CallbackMember.struct_call_add_cb(ts, 1, 2).should == 3
+ CallbackMember.struct_call_add_cb(ts, 1, 2).should eq 3
end
it 'should return callable object from []' do
@@ -74,7 +74,7 @@ describe FFI::Struct, ' with inline callback functions' do
s[:add] = add
fn = s[:add]
fn.respond_to?(:call).should be_true
- fn.call(1, 2).should == 3
+ fn.call(1, 2).should eq 3
end
end