ffi/ffi — pull request #345 by nathanaeljones (2014-06-21 09:45:22+00:00)
Title: Add failing test for Pointer#write_array_of_type

This method fails with an ArgumentException deeper in the stack.

```
Failure/Error: memory.write_array_of_type(FFI::TYPE_UINT8, :put_uint8,[1,2,3])
ArgumentError:
wrong number of arguments (1 for 2)
# ./lib/ffi/pointer.rb:128:in `put_uint8'
# ./lib/ffi/pointer.rb:128:in `block in write_array_of_type'
# ./lib/ffi/pointer.rb:127:in `each'
# ./lib/ffi/pointer.rb:127:in `each_with_index'
# ./lib/ffi/pointer.rb:127:in `write_array_of_type'
# ./spec/ffi/pointer_spec.rb:85:in `block (3 levels) in '
```