Sha256: d6e396edc1dbf74d06bd5808511cb0d3348d54d3beab1fd61417c58cff4a0d16

Contents?: true

Size: 778 Bytes

Versions: 3

Compression:

Stored size: 778 Bytes

Contents

require File.dirname(__FILE__) + '/../vendor/gems/deep_test/lib/deep_test'

class ForeignHostAgentSimulationListener < DeepTest::NullListener
  def starting(agent)
    # 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 agents
    # are started, since this is the first listener event that would be
    # invoked on a foreign host.  before_starting_agents 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

3 entries across 3 versions & 1 rubygems

Version Path
jstorimer-deep-test-2.0.0 sample_rails_project/lib/foreign_host_agent_simulation_listener.rb
jstorimer-deep-test-0.2.0 sample_rails_project/lib/foreign_host_agent_simulation_listener.rb
jstorimer-deep-test-0.1.0 sample_rails_project/lib/foreign_host_agent_simulation_listener.rb