Skip to content

Instantly share code, notes, and snippets.

@turboladen
Created March 22, 2013 19:59
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 turboladen/5224291 to your computer and use it in GitHub Desktop.
Save turboladen/5224291 to your computer and use it in GitHub Desktop.
Use rspec-mocks with test-unit
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