Search code examples
ruby-on-railstestingruby-on-rails-3.1sporkminitest

Spork + Minitest


Can anyone explain how to use Spork with Minitest. I see there's a spork-minitest gem, but it's not clear how to use it.


Solution

  • after you add it to your Gemfile, you can use the docs at https://github.com/sporkrb/spork and substitute in 'minitest'.

    so you can do spork minitest --bootstrap

    then to run tests, spork-minitest provides a testdrb which you can pass tests into so testdrb test/unit/something_test.rb