summaryrefslogtreecommitdiff
path: root/spec/ffi/function_type_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ffi/function_type_spec.rb')
-rw-r--r--spec/ffi/function_type_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ffi/function_type_spec.rb b/spec/ffi/function_type_spec.rb
index 54e1c48..2f171d8 100644
--- a/spec/ffi/function_type_spec.rb
+++ b/spec/ffi/function_type_spec.rb
@@ -8,7 +8,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))
describe "FFI::FunctionType", skip: RUBY_ENGINE != "ruby" do
it 'is initialized with return type and a list of parameter types' do
function_type = FFI::FunctionType.new(:int, [ :char, :ulong ])
- expect(function_type.result_type).to be == FFI::Type::Builtin::INT
+ expect(function_type.return_type).to be == FFI::Type::Builtin::INT
expect(function_type.param_types).to be == [ FFI::Type::Builtin::CHAR, FFI::Type::Builtin::ULONG ]
end