summaryrefslogtreecommitdiff
path: root/spec/ruby/library/date/iso8601_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/date/iso8601_spec.rb')
-rw-r--r--spec/ruby/library/date/iso8601_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/date/iso8601_spec.rb b/spec/ruby/library/date/iso8601_spec.rb
index 41f055e648..21b0a4cedd 100644
--- a/spec/ruby/library/date/iso8601_spec.rb
+++ b/spec/ruby/library/date/iso8601_spec.rb
@@ -28,10 +28,10 @@ describe "Date.iso8601" do
end
it "raises an ArgumentError when passed a Symbol without a valid Date" do
- lambda { Date.iso8601(:test) }.should raise_error(ArgumentError)
+ -> { Date.iso8601(:test) }.should raise_error(ArgumentError)
end
it "raises a TypeError when passed an Object" do
- lambda { Date.iso8601(Object.new) }.should raise_error(TypeError)
+ -> { Date.iso8601(Object.new) }.should raise_error(TypeError)
end
end