Skip to content
This repository
Browse code

+ 1.9 support! (phiggins)

[git-p4: depot-paths = "//src/heckle/dev/": change = 7619]
  • Loading branch information...
commit 7239635793bc6c4714c3094d96a07e65f4d68acd 1 parent 94b0757
Ryan Davis zenspider authored
2  lib/heckle.rb
@@ -834,7 +834,7 @@ def report_test_failures
834 834 # All nodes that can be mutated by Heckle.
835 835
836 836 MUTATABLE_NODES = instance_methods.grep(/mutate_/).sort.map do |meth|
837   - meth.sub(/mutate_/, '').intern
  837 + meth.to_s.sub(/mutate_/, '').intern
838 838 end - [:asgn, :node] # Ignore these methods
839 839
840 840 ##
1  lib/test_unit_heckler.rb
... ... @@ -1,6 +1,5 @@
1 1 #!/usr/bin/env ruby
2 2
3   -require 'test/unit/autorunner'
4 3 require 'test/unit/testcase'
5 4 require 'heckle'
6 5 require 'zentest_mapping'
9 test/test_heckle.rb
... ... @@ -1,10 +1,5 @@
1   -$:.unshift(File.dirname(__FILE__) + '/fixtures')
2   -$:.unshift(File.dirname(__FILE__) + '/../lib')
3   -
4   -require 'test/unit/testcase'
5   -require 'test/unit' if $0 == __FILE__
6 1 require 'test_unit_heckler'
7   -require 'heckled'
  2 +require 'fixtures/heckled'
8 3
9 4 class TestHeckler < Heckle
10 5 def rand(*args)
@@ -26,7 +21,7 @@ def rand_symbol
26 21
27 22 class HeckleTestCase < Test::Unit::TestCase
28 23 unless defined? Mini then
29   - undef_method :default_test
  24 + undef_method :default_test if method_defined? :default_test
30 25 alias :refute_equal :assert_not_equal
31 26 end
32 27

0 comments on commit 7239635

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