Permalink
Browse files

GOD I HATE TEST/UNIT!!!

[git-p4: depot-paths = "//src/heckle/dev/": change = 4299]
  • Loading branch information...
1 parent abe4156 commit e27871e9dcc40aca982d8bfce78bb02c3b357b18 @zenspider zenspider committed Oct 6, 2008
Showing with 5 additions and 4 deletions.
  1. +5 −4 test/test_heckle.rb
View
@@ -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

0 comments on commit e27871e

Please sign in to comment.