diff options
Diffstat (limited to 'spec/ruby/core/regexp/new_spec.rb')
| -rw-r--r-- | spec/ruby/core/regexp/new_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/regexp/new_spec.rb b/spec/ruby/core/regexp/new_spec.rb index 8259b61714..d2d867b3d3 100644 --- a/spec/ruby/core/regexp/new_spec.rb +++ b/spec/ruby/core/regexp/new_spec.rb @@ -16,12 +16,12 @@ end describe "Regexp.new given a Fixnum" do it "raises a TypeError" do - lambda { Regexp.new(1) }.should raise_error(TypeError) + -> { Regexp.new(1) }.should raise_error(TypeError) end end describe "Regexp.new given a Float" do it "raises a TypeError" do - lambda { Regexp.new(1.0) }.should raise_error(TypeError) + -> { Regexp.new(1.0) }.should raise_error(TypeError) end end |
