Fix failing jruby spec

This commit is contained in:
Ryan Fitzgerald 2013-10-23 23:22:42 -07:00
parent 3bbe0f0c32
commit add29398f0
1 changed files with 2 additions and 1 deletions

View File

@ -319,7 +319,8 @@ describe Pry do
end
it 'should define a method on the class of an object when performing "def meth;end" inside an immediate value or Numeric' do
[:test, 0, true, false, nil, 0.0].each do |val|
[:test, 0, true, false, nil,
(0.0 unless Pry::Helpers::BaseHelpers.jruby?)].each do |val|
pry_eval(val, "def hello; end");
val.class.instance_methods(false).map(&:to_sym).include?(:hello).should == true
end