1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eregon 2018-08-27 16:22:21 +00:00
parent 58689fa747
commit 2dca35b9b1
4 changed files with 24 additions and 21 deletions

View file

@ -33,7 +33,7 @@ describe "The DATA constant" do
it "is set even if there is no newline after __END__" do
path = tmp("no_newline_data.rb")
code = File.read(fixture(__FILE__, "empty_data.rb"))
code = File.binread(fixture(__FILE__, "empty_data.rb"))
touch(path) { |f| f.write code.chomp }
begin
ruby_exe(path).should == "30\n\"\"\n"