diff options
Diffstat (limited to 'spec/ruby/core/proc/allocate_spec.rb')
| -rw-r--r-- | spec/ruby/core/proc/allocate_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/proc/allocate_spec.rb b/spec/ruby/core/proc/allocate_spec.rb index 6bfb94dbc2..96c4eb9fa8 100644 --- a/spec/ruby/core/proc/allocate_spec.rb +++ b/spec/ruby/core/proc/allocate_spec.rb @@ -1,9 +1,9 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe "Proc.allocate" do it "raises a TypeError" do - lambda { + -> { Proc.allocate - }.should raise_error(TypeError) + }.should.raise(TypeError) end end |
