summaryrefslogtreecommitdiff
path: root/spec/ruby/core/io/ioctl_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/io/ioctl_spec.rb')
-rw-r--r--spec/ruby/core/io/ioctl_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/io/ioctl_spec.rb b/spec/ruby/core/io/ioctl_spec.rb
index 8dcd9eb2c6..3f7b5ad5d7 100644
--- a/spec/ruby/core/io/ioctl_spec.rb
+++ b/spec/ruby/core/io/ioctl_spec.rb
@@ -12,7 +12,7 @@ describe "IO#ioctl" do
guard -> { RUBY_PLATFORM.include?("86") } do # x86 / x86_64
it "resizes an empty String to match the output size" do
File.open(__FILE__, 'r') do |f|
- buffer = ''
+ buffer = +''
# FIONREAD in /usr/include/asm-generic/ioctls.h
f.ioctl 0x541B, buffer
buffer.unpack('I').first.should be_kind_of(Integer)