Spork + Minitest

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

+1
ruby-on-rails ruby-on-rails-3.1 testing minitest spork


source to share


1 answer


after you add it to your Gemfile you can use the docs at https://github.com/sporkrb/spork and replace it with "minitest".

so you can do spork minitest --bootstrap



then for running tests spork-minitest provides testdrb

which you can pass tests totestdrb test/unit/something_test.rb

+2


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics