test/unit/test-proc.rb in rb-threadframe-0.39 vs test/unit/test-proc.rb in rb-threadframe-0.40
- old
+ new
@@ -1,14 +1,17 @@
# Test of additional proc and method
require 'test/unit'
-require_relative '../../ext/thread_frame'
+require_relative '../../ext/thread_frame' if '1.9.2' == RUBY_VERSION
+
class TestProcAndMethod < Test::Unit::TestCase
def test_proc_iseq
assert_equal(true,
Proc.new{|x,y| x+y}.iseq.is_a?(RubyVM::InstructionSequence))
end
def test_method_extra
+ # skip "Figure out what's up with on 1.9.3" if
+ # '1.9.3' == RUBY_VERSION
m = self.method :test_method_extra
assert_equal(1, m.alias_count)
assert_equal(:test_method_extra, m.original_id)
self.instance_eval { assert_equal(1, m.alias_count) }
assert_equal(1, m.alias_count)