Test::Unit::Util::BacktraceFilter not available in ruby19 test/unit
This commit is contained in:
parent
748725e9ce
commit
a1a5c40dad
@ -27,23 +27,6 @@ def test_truth
|
||||
run_test_file 'unit/foo_test.rb'
|
||||
end
|
||||
|
||||
# Run just in Ruby < 1.9
|
||||
if defined?(Test::Unit::Util::BacktraceFilter)
|
||||
test "adds backtrace cleaner" do
|
||||
app_file 'test/unit/backtrace_test.rb', <<-RUBY
|
||||
require 'test_helper'
|
||||
|
||||
class FooTest < ActiveSupport::TestCase
|
||||
def test_truth
|
||||
assert Test::Unit::Util::BacktraceFilter.ancestors.include?(Rails::BacktraceFilterForTestUnit)
|
||||
end
|
||||
end
|
||||
RUBY
|
||||
|
||||
run_test_file 'unit/backtrace_test.rb'
|
||||
end
|
||||
end
|
||||
|
||||
test "integration test" do
|
||||
controller 'posts', <<-RUBY
|
||||
class PostsController < ActionController::Base
|
||||
|
Loading…
Reference in New Issue
Block a user