Sha256: ba142e3c92439073a7369a53a00335b9a6d9704d4c77a0878c5cdda1e587e609
Contents?: true
Size: 712 Bytes
Versions: 5
Compression:
Stored size: 712 Bytes
Contents
class ForeignHostWorkerSimulationListener < DeepTest::NullWorkerListener def starting(worker) # On a foreign host, there won't necessarily be a database for tests # to run against. We simulate that by dropping them here. # # It's important that this happens as the first thing when the workers # are started, since this is the first listener event that would be # invoked on a foreign host. before_starting_workers would be invoked # on the local host, which should have databases available as usual. # system "mysqladmin -u root -f drop sample_rails_project_development > /dev/null" system "mysqladmin -u root -f drop sample_rails_project_test > /dev/null" end end
Version data entries
5 entries across 5 versions & 1 rubygems