summaryrefslogtreecommitdiff
path: root/spec/ffi
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ffi')
-rw-r--r--spec/ffi/function_type_spec.rb2
-rw-r--r--spec/ffi/library_spec.rb2
-rw-r--r--spec/ffi/variadic_spec.rb2
3 files changed, 3 insertions, 3 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
diff --git a/spec/ffi/library_spec.rb b/spec/ffi/library_spec.rb
index c9542b9..14a8bc1 100644
--- a/spec/ffi/library_spec.rb
+++ b/spec/ffi/library_spec.rb
@@ -204,7 +204,7 @@ describe "Library" do
fun = mod.attached_functions
expect(fun.keys).to eq(["bool_return_true"])
expect(fun["bool_return_true"].param_types).to eq([FFI::Type::STRING])
- expect(fun["bool_return_true"].result_type).to eq(FFI::Type::BOOL)
+ expect(fun["bool_return_true"].return_type).to eq(FFI::Type::BOOL)
end
end
diff --git a/spec/ffi/variadic_spec.rb b/spec/ffi/variadic_spec.rb
index 283878b..917212a 100644
--- a/spec/ffi/variadic_spec.rb
+++ b/spec/ffi/variadic_spec.rb
@@ -40,7 +40,7 @@ describe "Function with variadic arguments" do
it "can reveal its return and parameters" do
fun = LibTest.attached_functions["testBlockingWRva"]
expect(fun.param_types).to eq([FFI::Type::POINTER, FFI::Type::CHAR, FFI::Type::VARARGS])
- expect(fun.result_type).to eq(FFI::Type::INT8)
+ expect(fun.return_type).to eq(FFI::Type::INT8)
end
it 'can wrap a blocking function with varargs' do