summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Irwin <conrad.irwin@gmail.com>2012-05-25 23:52:51 -0700
committerConrad Irwin <conrad.irwin@gmail.com>2012-05-26 00:05:18 -0700
commit838bdc982b6cea3000ff1e089ebc99d113f64855 (patch)
tree6639c522421f9e95628ac4776371f7cc058714f9
parent118a2617e79d1fc562138b8da4bd15d97d341c21 (diff)
downloadmethod_source-838bdc982b6cea3000ff1e089ebc99d113f64855.tar.gz
Skip broken tests in jruby
-rw-r--r--test/test.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/test.rb b/test/test.rb
index db6a0de..3fd1597 100644
--- a/test/test.rb
+++ b/test/test.rb
@@ -66,11 +66,14 @@ describe MethodSource do
method(:hello).comment.should == @hello_comment
end
- it 'should return source for an *_evaled method' do
- M.method(:hello_name).source.should == @hello_instance_evaled_source
- M.method(:name_two).source.should == @hello_instance_evaled_source_2
- M.instance_method(:hello_name).source.should == @hello_class_evaled_source
- M.instance_method(:hi_name).source.should == @hi_module_evaled_source
+ # These tests fail because of http://jira.codehaus.org/browse/JRUBY-4576
+ unless defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
+ it 'should return source for an *_evaled method' do
+ M.method(:hello_name).source.should == @hello_instance_evaled_source
+ M.method(:name_two).source.should == @hello_instance_evaled_source_2
+ M.instance_method(:hello_name).source.should == @hello_class_evaled_source
+ M.instance_method(:hi_name).source.should == @hi_module_evaled_source
+ end
end
it "should raise error for evaled methods that do not pass __FILE__ and __LINE__ + 1 as its arguments" do