summaryrefslogtreecommitdiff
path: root/spec/ruby/library/net/ftp/system_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/net/ftp/system_spec.rb')
-rw-r--r--spec/ruby/library/net/ftp/system_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/library/net/ftp/system_spec.rb b/spec/ruby/library/net/ftp/system_spec.rb
index 73a5ddc72f..749258622d 100644
--- a/spec/ruby/library/net/ftp/system_spec.rb
+++ b/spec/ruby/library/net/ftp/system_spec.rb
@@ -28,21 +28,21 @@ describe "Net::FTP#system" do
it "raises a Net::FTPPermError when the response code is 500" do
@server.should_receive(:syst).and_respond("500 Syntax error, command unrecognized.")
- lambda { @ftp.system }.should raise_error(Net::FTPPermError)
+ -> { @ftp.system }.should raise_error(Net::FTPPermError)
end
it "raises a Net::FTPPermError when the response code is 501" do
@server.should_receive(:syst).and_respond("501 Syntax error in parameters or arguments.")
- lambda { @ftp.system }.should raise_error(Net::FTPPermError)
+ -> { @ftp.system }.should raise_error(Net::FTPPermError)
end
it "raises a Net::FTPPermError when the response code is 502" do
@server.should_receive(:syst).and_respond("502 Command not implemented.")
- lambda { @ftp.system }.should raise_error(Net::FTPPermError)
+ -> { @ftp.system }.should raise_error(Net::FTPPermError)
end
it "raises a Net::FTPTempError when the response code is 421" do
@server.should_receive(:syst).and_respond("421 Service not available, closing control connection.")
- lambda { @ftp.system }.should raise_error(Net::FTPTempError)
+ -> { @ftp.system }.should raise_error(Net::FTPTempError)
end
end