diff options
-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 |