1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
ko1 2017-12-12 12:40:41 +00:00
parent d18fb887ea
commit 6c49079ea2
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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