Created
November 12, 2012 18:53
-
-
Save floehopper/4061146 to your computer and use it in GitHub Desktop.
Test Mocha deprecation warning
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
source :rubygems | |
gem "mocha", require: false |
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
require "bundler/setup" | |
require "test/unit" | |
require "mocha/setup" | |
class MyTest < Test::Unit::TestCase | |
def test_me | |
assert true | |
end | |
end |
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
$ ruby my_test.rb | |
Run options: | |
# Running tests: | |
. | |
Finished tests in 0.000551s, 1814.8820 tests/s, 1814.8820 assertions/s. | |
1 tests, 1 assertions, 0 failures, 0 errors, 0 skips |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment