forked from ruby/rake
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
177 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,30 @@ | ||
require 'rubygems' | ||
require 'test/unit' | ||
require 'flexmock/test_unit' | ||
|
||
require 'test/capture_stdout' | ||
require 'test/file_creation' | ||
|
||
require 'minitest/unit' | ||
require 'flexmock/test_unit_integration' | ||
require 'minitest/autorun' | ||
require 'rake' | ||
|
||
class Rake::TestCase < Test::Unit::TestCase | ||
class Rake::TestCase < MiniTest::Unit::TestCase | ||
include FlexMock::ArgumentTypes | ||
include FlexMock::MockContainer | ||
|
||
include Rake::DSL | ||
|
||
def teardown | ||
flexmock_teardown | ||
super | ||
end | ||
|
||
def ignore_deprecations | ||
Rake.application.options.ignore_deprecate = true | ||
yield | ||
ensure | ||
Rake.application.options.ignore_deprecate = false | ||
end | ||
|
||
def assert_exception(ex, msg="", &block) | ||
assert_raise(ex, msg, &block) | ||
end | ||
end | ||
|
||
# workarounds for 1.8 | ||
$" << 'test/helper.rb' | ||
Test::Unit.run = true if Test::Unit.respond_to? :run= | ||
|
Oops, something went wrong.