Sha256: 2ae7a03962e5e8b0c074fb1e45814576d4d88d63730c39d3f17c86f53d285c79

Contents?: true

Size: 425 Bytes

Versions: 7

Compression:

Stored size: 425 Bytes

Contents

module FakeResolverConfigHooks
  def setup
    super
    @test_resolver_config = Pathname('/tmp/vagrant_landrush_test_resolver_config')
    Landrush::ResolverConfig.instance_variable_set(
      "@config_file",
      @test_resolver_config
    )
  end

  def teardown
    super
    if @test_resolver_config.exist?
      @test_resolver_config.delete
    end
  end
end

class MiniTest::Spec
  include FakeResolverConfigHooks
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
landrush-0.7.0 test/support/fake_resolver_config.rb
landrush-0.6.0 test/support/fake_resolver_config.rb
landrush-0.5.0 test/support/fake_resolver_config.rb
landrush-0.4.1 test/support/fake_resolver_config.rb
landrush-0.4.0 test/support/fake_resolver_config.rb
landrush-0.3.1 test/support/fake_resolver_config.rb
landrush-0.3.0 test/support/fake_resolver_config.rb