Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

GOD I HATE TEST/UNIT!!!

[git-p4: depot-paths = "//src/heckle/dev/": change = 4299]
  • Loading branch information...
commit e27871e9dcc40aca982d8bfce78bb02c3b357b18 1 parent abe4156
@zenspider zenspider authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 test/test_heckle.rb
View
9 test/test_heckle.rb
@@ -32,13 +32,14 @@ class HeckleTestCase < Test::Unit::TestCase
def setup
@nodes ||= Heckle::MUTATABLE_NODES
- unless defined? @method_name then
+ unless defined? @hecklee then
data = self.class.name.sub(/HeckleTestCase/, '').sub(/TestHeckle/, '')
data = data.gsub(/([A-Z])/, '_\1').downcase
data = "_many_things" if data.empty?
- @method_name = "uses#{data}"
+ @hecklee = "uses#{data}"
end
- @heckler = TestHeckler.new("Heckled", @method_name, @nodes) rescue nil
+
+ @heckler = TestHeckler.new("Heckled", @hecklee, @nodes) rescue nil
end
def teardown
@@ -504,7 +505,7 @@ def test_callblock_deleted
class TestHeckleClassMethod < HeckleTestCase
def setup
- @method_name = "self.is_a_klass_method?"
+ @hecklee = "self.is_a_klass_method?"
@nodes = s(:true)
super
end
Please sign in to comment.
Something went wrong with that request. Please try again.