How do you run rot in a Rails integration test?
1 answer
I think it is best to start rotting in before(:all)
block method (for rspec) or def setup
(for test block) and stop it in block / method after(:all)
/ def teardown
respectively.
To start a company, you should probably use something like:
rots = IO.popen("rots")
and then to stop it:
rots.close
but remember this code is untested.
+1
source to share