Skip to content
Browse files

+ 1.9 support! (phiggins)

[git-p4: depot-paths = "//src/heckle/dev/": change = 7619]
  • Loading branch information...
1 parent 94b0757 commit 7239635793bc6c4714c3094d96a07e65f4d68acd @zenspider zenspider committed Jul 3, 2012
Showing with 3 additions and 9 deletions.
  1. +1 −1 lib/heckle.rb
  2. +0 −1 lib/test_unit_heckler.rb
  3. +2 −7 test/test_heckle.rb
View
2 lib/heckle.rb
@@ -834,7 +834,7 @@ def report_test_failures
# All nodes that can be mutated by Heckle.
MUTATABLE_NODES = instance_methods.grep(/mutate_/).sort.map do |meth|
- meth.sub(/mutate_/, '').intern
+ meth.to_s.sub(/mutate_/, '').intern
end - [:asgn, :node] # Ignore these methods
##
View
1 lib/test_unit_heckler.rb
@@ -1,6 +1,5 @@
#!/usr/bin/env ruby
-require 'test/unit/autorunner'
require 'test/unit/testcase'
require 'heckle'
require 'zentest_mapping'
View
9 test/test_heckle.rb
@@ -1,10 +1,5 @@
-$:.unshift(File.dirname(__FILE__) + '/fixtures')
-$:.unshift(File.dirname(__FILE__) + '/../lib')
-
-require 'test/unit/testcase'
-require 'test/unit' if $0 == __FILE__
require 'test_unit_heckler'
-require 'heckled'
+require 'fixtures/heckled'
class TestHeckler < Heckle
def rand(*args)
@@ -26,7 +21,7 @@ def rand_symbol
class HeckleTestCase < Test::Unit::TestCase
unless defined? Mini then
- undef_method :default_test
+ undef_method :default_test if method_defined? :default_test
alias :refute_equal :assert_not_equal
end

0 comments on commit 7239635

Please sign in to comment.
Something went wrong with that request. Please try again.