Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

freerange/rr-with-minitest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Demo of RR/MiniTest integration

How it works

  • Re-open MiniTest::Unit::TestCase and include RR::Adapters::MiniTest.
  • This includes RR::Adapters::RRMethods c.f. Mocha::API
  • And does an alias_method_chain style manoeuvre on MiniTest::Unit::TestCase#setup and MiniTest::Unit::TestCase#teardown in order to add calls to RR.reset and RR.verify.
  • There is no warning in the documentation that if you define your own #setup or #teardown methods then you should make sure you call #super otherwise RR will not work correctly.

About

Demo of RR/MiniTest integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages