summaryrefslogtreecommitdiff
path: root/spec/ruby/library/time
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/time')
-rw-r--r--spec/ruby/library/time/shared/rfc2822.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/time/shared/rfc2822.rb b/spec/ruby/library/time/shared/rfc2822.rb
index b7bf0fb5f5..d99f1f76de 100644
--- a/spec/ruby/library/time/shared/rfc2822.rb
+++ b/spec/ruby/library/time/shared/rfc2822.rb
@@ -57,7 +57,7 @@ describe :time_rfc2822, shared: true do
t18 = Time.rfc2822("Fri, 21 Nov 1997 09 : 55 : 06 -0600")
t17.should == t18
- lambda {
+ -> {
# inner comment is not supported.
Time.rfc2822("Fri, 21 Nov 1997 09(comment): 55 : 06 -0600")
}.should raise_error(ArgumentError)