test/support/fake_resolver_config.rb in landrush-0.7.0 vs test/support/fake_resolver_config.rb in landrush-0.7.1
- old
+ new
@@ -1,18 +1,18 @@
module FakeResolverConfigHooks
def setup
super
- @test_resolver_config = Pathname('/tmp/vagrant_landrush_test_resolver_config')
+ @test_resolver_config_dir = Pathname('/tmp/landrush_fake_resolver')
Landrush::ResolverConfig.instance_variable_set(
- "@config_file",
- @test_resolver_config
+ "@config_dir",
+ @test_resolver_config_dir
)
end
def teardown
super
- if @test_resolver_config.exist?
- @test_resolver_config.delete
+ if @test_resolver_config_dir.exist?
+ @test_resolver_config_dir.rmtree
end
end
end
class MiniTest::Spec