ruby-changes:52361
From: eregon <ko1@a...>
Date: Mon, 27 Aug 2018 23:50:04 +0900 (JST)
Subject: [ruby-changes:52361] eregon:r64569 (trunk): Update to ruby/spec@a89819d
eregon 2018-08-27 23:49:56 +0900 (Mon, 27 Aug 2018) New Revision: 64569 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64569 Log: Update to ruby/spec@a89819d Removed files: trunk/spec/ruby/language/predefined/fixtures/no_newline_data.rb Modified files: trunk/spec/ruby/language/fixtures/utf16-le-bom.rb trunk/spec/ruby/language/predefined/data_spec.rb Index: spec/ruby/language/predefined/fixtures/no_newline_data.rb =================================================================== --- spec/ruby/language/predefined/fixtures/no_newline_data.rb (revision 64568) +++ spec/ruby/language/predefined/fixtures/no_newline_data.rb (nonexistent) @@ -1,3 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/language/predefined/fixtures/no_newline_data.rb#L0 -p DATA.pos -p DATA.read -__END__ Property changes on: spec/ruby/language/predefined/fixtures/no_newline_data.rb ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: spec/ruby/language/predefined/data_spec.rb =================================================================== --- spec/ruby/language/predefined/data_spec.rb (revision 64568) +++ spec/ruby/language/predefined/data_spec.rb (revision 64569) @@ -32,7 +32,14 @@ describe "The DATA constant" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/language/predefined/data_spec.rb#L32 end it "is set even if there is no newline after __END__" do - ruby_exe(fixture(__FILE__, "no_newline_data.rb")).should == "30\n\"\"\n" + path = tmp("no_newline_data.rb") + code = File.read(fixture(__FILE__, "empty_data.rb")) + touch(path) { |f| f.write code.chomp } + begin + ruby_exe(path).should == "30\n\"\"\n" + ensure + rm_r path + end end it "rewinds to the head of the main script" do Index: spec/ruby/language/fixtures/utf16-le-bom.rb =================================================================== Binary files spec/ruby/language/fixtures/utf16-le-bom.rb (revision 64568) and spec/ruby/language/fixtures/utf16-le-bom.rb (revision 64569) differ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/