summaryrefslogtreecommitdiff
path: root/spec/ffi/struct_by_ref_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ffi/struct_by_ref_spec.rb')
-rw-r--r--spec/ffi/struct_by_ref_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ffi/struct_by_ref_spec.rb b/spec/ffi/struct_by_ref_spec.rb
index 0c01137..f664937 100644
--- a/spec/ffi/struct_by_ref_spec.rb
+++ b/spec/ffi/struct_by_ref_spec.rb
@@ -41,7 +41,7 @@ describe FFI::Struct, ' by_ref' do
end
it "can reveal the mapped type converter" do
- param_type = @api.attached_functions["struct_test"].param_types[0]
+ param_type = @api.attached_functions[:struct_test].param_types[0]
expect(param_type).to be_a(FFI::Type::Mapped)
expect(param_type.converter).to be_a(FFI::StructByReference)
end