test/support/fake_resolver_config.rb in landrush-0.8.0 vs test/support/fake_resolver_config.rb in landrush-0.9.0

- old
+ new

@@ -1,16 +1,15 @@ module FakeResolverConfigHooks def setup super @test_resolver_config_dir = Pathname('/tmp/landrush_fake_resolver') - Landrush::ResolverConfig.instance_variable_set( - "@config_dir", - @test_resolver_config_dir - ) + Landrush::ResolverConfig.config_dir = @test_resolver_config_dir + Landrush::ResolverConfig.sudo = '' end def teardown super + Landrush::ResolverConfig.sudo = 'sudo' if @test_resolver_config_dir.exist? @test_resolver_config_dir.rmtree end end end