diff options
Diffstat (limited to 'spec/ffi/struct_spec.rb')
-rw-r--r-- | spec/ffi/struct_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ffi/struct_spec.rb b/spec/ffi/struct_spec.rb index 9cb08bc..6c03277 100644 --- a/spec/ffi/struct_spec.rb +++ b/spec/ffi/struct_spec.rb @@ -102,7 +102,7 @@ describe "Struct tests" do smp = FFI::MemoryPointer.new :pointer s = PointerMember.new smp expect { s[:pointer] = s }.not_to raise_error Exception - expect { foo = s[:pointer] }.not_to raise_error Exception + expect { s[:pointer].nil? }.not_to raise_error Exception end it "Struct#[:pointer]=nil" do |