summaryrefslogtreecommitdiff
path: root/spec/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby')
-rw-r--r--spec/ruby/core/io/shared/write.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/io/shared/write.rb b/spec/ruby/core/io/shared/write.rb
index 542d20d2a4..270b84ac39 100644
--- a/spec/ruby/core/io/shared/write.rb
+++ b/spec/ruby/core/io/shared/write.rb
@@ -73,10 +73,10 @@ describe :io_write, shared: true do
File.open(@filename, "w") do |f|
f.set_encoding(Encoding::IBM437)
# A character whose codepoint differs between UTF-8 and IBM437
- f.write "ƒ\n".freeze
+ f.write "ƒ".freeze
end
- File.binread(@filename).bytes.should == [159, 10]
+ File.binread(@filename).bytes.should == [159]
end
describe "on a pipe" do