Created
June 27, 2012 17:21
-
-
Save osheroff/3005515 to your computer and use it in GitHub Desktop.
1.9 incompatibilities patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ActiveSupport::TestCase | |
def self.mark_19_incompat | |
@marked_19_incompat = true | |
end | |
def self.ruby_19_compatible? | |
!@marked_19_incompat | |
end | |
def run_with_19(*args, &block) | |
return true if ENV['RUBY_19_MODE'] && !self.class.ruby_19_compatible? | |
run_without_19(*args, &block) | |
end | |
alias_method_chain(:run, "19") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment