Permalink
Browse files

Only patch mutant when RUBY_VERSION is >= 1.9

  • Loading branch information...
1 parent 5b5dbe6 commit 4b53f729f508377863189939c49296b4774f3e13 @indrekj indrekj committed May 27, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 spec/spec_helper.rb
View
@@ -33,8 +33,10 @@
# inflecto.
module Mutant
module Inflecto
- ::Inflecto.singleton_methods.each do |name|
- define_singleton_method name, ::Inflecto.method(name).to_proc
+ if RUBY_VERSION >= '1.9'
+ ::Inflecto.singleton_methods.each do |name|
+ define_singleton_method name, ::Inflecto.method(name).to_proc
+ end
end
end
end

0 comments on commit 4b53f72

Please sign in to comment.