diff options
Diffstat (limited to 'spec/ruby/library/cgi')
-rw-r--r-- | spec/ruby/library/cgi/cookie/initialize_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/library/cgi/out_spec.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/library/cgi/cookie/initialize_spec.rb b/spec/ruby/library/cgi/cookie/initialize_spec.rb index f41129a9cf..4b6e104b10 100644 --- a/spec/ruby/library/cgi/cookie/initialize_spec.rb +++ b/spec/ruby/library/cgi/cookie/initialize_spec.rb @@ -120,8 +120,8 @@ describe "CGI::Cookie#initialize when passed Hash" do end it "raises a ArgumentError when the passed Hash has no 'name' entry" do - lambda { @cookie.send(:initialize, {}) }.should raise_error(ArgumentError) - lambda { @cookie.send(:initialize, "value" => "test") }.should raise_error(ArgumentError) + -> { @cookie.send(:initialize, {}) }.should raise_error(ArgumentError) + -> { @cookie.send(:initialize, "value" => "test") }.should raise_error(ArgumentError) end end diff --git a/spec/ruby/library/cgi/out_spec.rb b/spec/ruby/library/cgi/out_spec.rb index 84068cdd4f..bc09f5bcbb 100644 --- a/spec/ruby/library/cgi/out_spec.rb +++ b/spec/ruby/library/cgi/out_spec.rb @@ -46,6 +46,6 @@ describe "CGI#out when passed no block" do end it "raises a LocalJumpError" do - lambda { @cgi.out }.should raise_error(LocalJumpError) + -> { @cgi.out }.should raise_error(LocalJumpError) end end |