diff options
author | Kyrylo Silin <silin@kyrylo.org> | 2018-11-12 02:00:02 +0800 |
---|---|---|
committer | Kyrylo Silin <silin@kyrylo.org> | 2018-11-12 02:00:02 +0800 |
commit | 48405c48cd6c4054bdec187530a6d66b93a2b57b (patch) | |
tree | c13db0a4a98a91e8927faf491350e53985a4d160 /spec/spec_helper.rb | |
parent | 609c4c438b38a8944ae5d9560b9c467775496c02 (diff) | |
download | method_source-48405c48cd6c4054bdec187530a6d66b93a2b57b.tar.gz |
Revert "method_source: fix broken Procs on JRuby 9.2.0.0"
Fixes #52 (Revert the JRuby 9.2.0.0 source_location hack once the newest version
is out)
This reverts commit 20fb1efde4530c78f7627d8b5b4e0b3f43cf821d.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3b5201a..0e5de61 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -49,11 +49,9 @@ def comment_test5; end # This is a comment for MyLambda MyLambda = lambda { :lambda } -MyProc = Proc.new do +MyProc = Proc.new { :proc } -end - name = "name" M.instance_eval <<-METHOD, __FILE__, __LINE__ + 1 @@ -100,3 +98,4 @@ EOF # class_eval without filename and lineno + 1 parameter M.class_eval "def #{name}_three; @tempfile.#{name}; end" + |