1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Correct condition for 1.8ness

This commit is contained in:
Conrad Irwin 2012-04-12 23:29:35 -07:00
parent c30550df26
commit fa6791eb56

View file

@ -5,7 +5,7 @@ require 'helper'
# methods (in an attempt to find a match) it runs 'exit' and aborts
# the test, causing a failure. We should fix this in the future by
# blacklisting certain methods for 1.8 MRI (such as exit, fork, and so on)
if !(RUBY_VERSION["1.8"] && !defined?(RUBY_ENGINE))
unless Pry::Helpers::BaseHelpers.mri_18?
MyKlass = Class.new do
def hello
"timothy"