From c6287fa4fad09ac1751d3addff207696acf6cbcd Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 12 Dec 2017 12:40:41 +0000 Subject: ignore lines (to catch up r61155). * spec/ruby/library/net/ftp/return_code_spec.rb: check message body only. * spec/ruby/library/net/http/http/set_debug_output_spec.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/library/net/ftp/return_code_spec.rb | 4 ++-- spec/ruby/library/net/http/http/set_debug_output_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/ruby/library/net/ftp/return_code_spec.rb b/spec/ruby/library/net/ftp/return_code_spec.rb index b6090aeb61..64100bc3fc 100644 --- a/spec/ruby/library/net/ftp/return_code_spec.rb +++ b/spec/ruby/library/net/ftp/return_code_spec.rb @@ -9,7 +9,7 @@ describe "Net::FTP#return_code" do it "outputs a warning and returns a newline" do lambda do @ftp.return_code.should == "\n" - end.should complain("warning: Net::FTP#return_code is obsolete and do nothing\n") + end.should complain(/warning: Net::FTP#return_code is obsolete and do nothing/) end end @@ -19,6 +19,6 @@ describe "Net::FTP#return_code=" do end it "outputs a warning" do - lambda { @ftp.return_code = 123 }.should complain("warning: Net::FTP#return_code= is obsolete and do nothing\n") + lambda { @ftp.return_code = 123 }.should complain(/warning: Net::FTP#return_code= is obsolete and do nothing/) end end diff --git a/spec/ruby/library/net/http/http/set_debug_output_spec.rb b/spec/ruby/library/net/http/http/set_debug_output_spec.rb index 806f468a84..820c368cd0 100644 --- a/spec/ruby/library/net/http/http/set_debug_output_spec.rb +++ b/spec/ruby/library/net/http/http/set_debug_output_spec.rb @@ -28,6 +28,6 @@ describe "Net::HTTP#set_debug_output when passed io" do it "outputs a warning when the connection has already been started" do @http.start - lambda { @http.set_debug_output(StringIO.new) }.should complain("Net::HTTP#set_debug_output called after HTTP started\n") + lambda { @http.set_debug_output(StringIO.new) }.should complain(/Net::HTTP#set_debug_output called after HTTP started/) end end -- cgit v1.2.3