summaryrefslogtreecommitdiff
path: root/spec/ruby/core/proc/to_proc_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/proc/to_proc_spec.rb')
-rw-r--r--spec/ruby/core/proc/to_proc_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/proc/to_proc_spec.rb b/spec/ruby/core/proc/to_proc_spec.rb
index e5637c9f41..7f35a4f19b 100644
--- a/spec/ruby/core/proc/to_proc_spec.rb
+++ b/spec/ruby/core/proc/to_proc_spec.rb
@@ -1,9 +1,9 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
describe "Proc#to_proc" do
it "returns self" do
- [Proc.new {}, lambda {}, proc {}].each { |p|
- p.to_proc.should equal(p)
+ [Proc.new {}, -> {}, proc {}].each { |p|
+ p.to_proc.should.equal?(p)
}
end
end