Allow $ ruby -I"lib:test" ... runner by loading Bundler as needed.
New StreamHelpers to use capture for db migrate pending. Keeps test output clean and puts assertions on the $stderr message vs the return code.
Change rake_ test helpers to run_ since Rails 5 does not use rake. Will keep names forward consistent. Also moved these helpers to the DummyAppHelpers module so other tests can share them.
Move establish_connection helper to base test case in helper. Call connection for each model to ensure it actually re-connects after establishing the connection.
Changes also include:
$ ruby -I"lib:test" ...
runner by loading Bundler as needed.StreamHelpers
to usecapture
for db migrate pending. Keeps test output clean and puts assertions on the$stderr
message vs the return code.rake_
test helpers torun_
since Rails 5 does not use rake. Will keep names forward consistent. Also moved these helpers to theDummyAppHelpers
module so other tests can share them.establish_connection
helper to base test case in helper. Callconnection
for each model to ensure it actually re-connects after establishing the connection.