Created
March 22, 2013 19:59
-
-
Save turboladen/5224291 to your computer and use it in GitHub Desktop.
Use rspec-mocks with test-unit
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 'test-unit' | |
require 'rspec/mocks' | |
class Test::Unit::TestCase | |
def setup | |
RSpec::Mocks::setup(self) | |
end | |
def teardown | |
RSpec::Mocks.teardown | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment