vendor/plugins/dataset/spec/dataset/test_unit_spec.rb in radiant-0.7.2 vs vendor/plugins/dataset/spec/dataset/test_unit_spec.rb in radiant-0.8.0
- old
+ new
@@ -1,6 +1,6 @@
-require File.expand_path(File.dirname(__FILE__)) + '/../spec_helper'
+require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
require 'test/unit/testresult'
class Test::Unit::TestCase
include Dataset
end
@@ -200,9 +200,10 @@
test_instance.should respond_to(:helper_two)
end
def run_testcase(testcase)
result = Test::Unit::TestResult.new
+ testcase.module_eval { def test_dont_complain; end }
testcase.suite.run(result) {}
result.failure_count.should be(0)
result.error_count.should be(0)
end
end
\ No newline at end of file