Skip to content

Instantly share code, notes, and snippets.

@floehopper
Created November 12, 2012 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save floehopper/4061146 to your computer and use it in GitHub Desktop.
Save floehopper/4061146 to your computer and use it in GitHub Desktop.
Test Mocha deprecation warning
source :rubygems
gem "mocha", require: false
require "bundler/setup"
require "test/unit"
require "mocha/setup"
class MyTest < Test::Unit::TestCase
def test_me
assert true
end
end
$ 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