diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-12 12:40:41 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-12 12:40:41 +0000 |
commit | 6c49079ea2205119a0130c8d69e7f7a23f45b608 (patch) | |
tree | 702a11b1c90598e1a1a1020c369180b0c4770b4f /spec | |
parent | d18fb887ea04e132f3a26baf6a8a0307839322db (diff) |
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
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/library/net/ftp/return_code_spec.rb | 4 | ||||
-rw-r--r-- | 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 |