How do you run rot in a Rails integration test?

How do you run rots in a Rails integration test? I can run rots from the command line, should I run the command from Ruby, or is there a method I can call to run it?

+2


source to share


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







All Articles