aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-01-06 16:43:18 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-01-06 16:43:18 -0800
commitfec6f1ba82145fe8e9d6258069516d600cc7ce1f (patch)
treeab42f4827d7b60d5a24d9462613426d583339f4a /railties/test
parent1c09c29a0958eac86fffede00f30a1bee36d09a9 (diff)
parent185aa821d94308171d57e4e2cfffbcc312d01450 (diff)
downloadrails-fec6f1ba82145fe8e9d6258069516d600cc7ce1f.tar.gz
rails-fec6f1ba82145fe8e9d6258069516d600cc7ce1f.tar.bz2
rails-fec6f1ba82145fe8e9d6258069516d600cc7ce1f.zip
Merge pull request #4360 from rafaelfranca/patch-1
Remove more references to Test::Unit
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/backtrace_cleaner_test.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/railties/test/backtrace_cleaner_test.rb b/railties/test/backtrace_cleaner_test.rb
index 80077378db..cbe7d35f6d 100644
--- a/railties/test/backtrace_cleaner_test.rb
+++ b/railties/test/backtrace_cleaner_test.rb
@@ -1,34 +1,6 @@
require 'abstract_unit'
require 'rails/backtrace_cleaner'
-if defined? Test::Unit::Util::BacktraceFilter
- class TestWithBacktrace
- include Test::Unit::Util::BacktraceFilter
- include Rails::BacktraceFilterForTestUnit
- end
-
- class BacktraceCleanerFilterTest < ActiveSupport::TestCase
- def setup
- @test = TestWithBacktrace.new
- @backtrace = [ './test/rails/benchmark_test.rb', './test/rails/dependencies.rb', '/opt/local/lib/ruby/kernel.rb' ]
- end
-
- 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.send(:filter_backtrace, @backtrace)
- end
-
- test "filter backtrace should have the same arity as Test::Unit::Util::BacktraceFilter" do
- assert_nothing_raised do
- @test.send(:filter_backtrace, @backtrace, '/opt/local/lib')
- end
- end
- end
-else
- $stderr.puts 'No BacktraceFilter for minitest'
-end
-
if defined? Gem
class BacktraceCleanerVendorGemTest < ActiveSupport::TestCase
def setup