Skip to content

Commit

Permalink
test-unit 2: filter_backtrace is private
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Nov 13, 2009
1 parent 3a3dfe4 commit f62a883
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions railties/test/backtrace_cleaner_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ def setup
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
Expand Down

0 comments on commit f62a883

Please sign in to comment.