summaryrefslogtreecommitdiff
path: root/spec/ruby/core/time/strftime_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/time/strftime_spec.rb')
-rw-r--r--spec/ruby/core/time/strftime_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/time/strftime_spec.rb b/spec/ruby/core/time/strftime_spec.rb
index fd233f3577..1528a668a1 100644
--- a/spec/ruby/core/time/strftime_spec.rb
+++ b/spec/ruby/core/time/strftime_spec.rb
@@ -25,7 +25,7 @@ describe "Time#strftime" do
# Differences with date
it "requires an argument" do
- -> { @time.strftime }.should raise_error(ArgumentError)
+ -> { @time.strftime }.should.raise(ArgumentError)
end
# %Z is zone name or empty for Time