test-unit 2: filter_backtrace is private

This commit is contained in:
Jeremy Kemper 2009-11-10 21:04:00 -08:00
parent 0df1dc5a72
commit 322b6b29c2
1 changed files with 2 additions and 2 deletions

View File

@ -16,12 +16,12 @@ if defined? Test::Unit::Util::BacktraceFilter
test "test with backtrace should use the rails backtrace cleaner to clean" do
Rails.stubs(:backtrace_cleaner).returns(stub(:clean))
Rails.backtrace_cleaner.expects(:clean).with(@backtrace, nil)
@test.filter_backtrace(@backtrace)
@test.send(:filter_backtrace, @backtrace)
end
test "filter backtrace should have the same arity as Test::Unit::Util::BacktraceFilter" do
assert_nothing_raised do
@test.filter_backtrace(@backtrace, '/opt/local/lib')
@test.send(:filter_backtrace, @backtrace, '/opt/local/lib')
end
end
end