File: test_unit_integration.rb

package info (click to toggle)
ruby-rspec-expectations 2.14.2-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 920 kB
  • sloc: ruby: 8,202; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
# Include Matchers for other test frameworks.  Note that MiniTest _must_
# come before TU because on ruby 1.9, T::U::TC is a subclass of MT::U::TC
# and a 1.9 bug can lead to infinite recursion from the `super` call in our
# method_missing hook.  See this gist for more info:
# https://gist.github.com/845896
if defined?(MiniTest::Unit::TestCase)
  MiniTest::Unit::TestCase.send(:include, RSpec::Matchers)
end
if defined?(Test::Unit::TestCase)
  Test::Unit::TestCase.send(:include, RSpec::Matchers)
end