summaryrefslogtreecommitdiff
path: root/spec/ffi/struct_initialize_spec.rb
diff options
context:
space:
mode:
authorWayne Meissner <wmeissner@gmail.com>2010-12-27 10:49:58 +1000
committerWayne Meissner <wmeissner@gmail.com>2010-12-27 10:49:58 +1000
commit5cf48d43e216fbb2017ea5b4ed3b7ed99e52b1c7 (patch)
tree6f94a88eb4cf28e567f5bb9bfcaeaaa55b9f9948 /spec/ffi/struct_initialize_spec.rb
parent6766eea0c1e707b8a699e6451a94e26648a98662 (diff)
downloadffi-5cf48d43e216fbb2017ea5b4ed3b7ed99e52b1c7.tar.gz
Fixup a few spec problems
Diffstat (limited to 'spec/ffi/struct_initialize_spec.rb')
-rw-r--r--spec/ffi/struct_initialize_spec.rb17
1 files changed, 16 insertions, 1 deletions
diff --git a/spec/ffi/struct_initialize_spec.rb b/spec/ffi/struct_initialize_spec.rb
index 5bda5c3..0e91bc0 100644
--- a/spec/ffi/struct_initialize_spec.rb
+++ b/spec/ffi/struct_initialize_spec.rb
@@ -1,3 +1,18 @@
+#
+# This file is part of ruby-ffi.
+#
+# This code is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Lesser General Public License version 3 only, as
+# published by the Free Software Foundation.
+#
+# This code is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+# version 3 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with this work. If not, see <http://www.gnu.org/licenses/>.
+#
require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))
describe FFI::Struct, ' with an initialize function' do
@@ -20,7 +35,7 @@ describe FFI::ManagedStruct, ' with an initialize function' do
layout :string, :string
attr_accessor :magic
def initialize
- super MemoryPointer.new(:pointer).put_int(0, 0x1234).get_pointer(0)
+ super FFI::MemoryPointer.new(:pointer).put_int(0, 0x1234).get_pointer(0)
self.magic = 42
end
def self.release;end