Skip to content

Commit

Permalink
+ 1.9 support! (phiggins)
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/heckle/dev/": change = 7619]
  • Loading branch information
zenspider committed Jul 4, 2012
1 parent 94b0757 commit 7239635
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/heckle.rb
Expand Up @@ -834,7 +834,7 @@ def report_test_failures
# All nodes that can be mutated by Heckle. # All nodes that can be mutated by Heckle.


MUTATABLE_NODES = instance_methods.grep(/mutate_/).sort.map do |meth| 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 end - [:asgn, :node] # Ignore these methods


## ##
Expand Down
1 change: 0 additions & 1 deletion lib/test_unit_heckler.rb
@@ -1,6 +1,5 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby


require 'test/unit/autorunner'
require 'test/unit/testcase' require 'test/unit/testcase'
require 'heckle' require 'heckle'
require 'zentest_mapping' require 'zentest_mapping'
Expand Down
9 changes: 2 additions & 7 deletions 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 'test_unit_heckler'
require 'heckled' require 'fixtures/heckled'


class TestHeckler < Heckle class TestHeckler < Heckle
def rand(*args) def rand(*args)
Expand All @@ -26,7 +21,7 @@ def rand_symbol


class HeckleTestCase < Test::Unit::TestCase class HeckleTestCase < Test::Unit::TestCase
unless defined? Mini then unless defined? Mini then
undef_method :default_test undef_method :default_test if method_defined? :default_test
alias :refute_equal :assert_not_equal alias :refute_equal :assert_not_equal
end end


Expand Down

0 comments on commit 7239635

Please sign in to comment.