From 9c67e13fb8ea9eb181d253cf3066fedb54ac9794 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Sat, 18 Jul 2015 23:21:31 +0000 Subject: [PATCH] Fix test on NixOS Tempfile can be created in /run, too. --- spec/unit/driver_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/unit/driver_spec.rb b/spec/unit/driver_spec.rb index 571c2bf..9851acd 100644 --- a/spec/unit/driver_spec.rb +++ b/spec/unit/driver_spec.rb @@ -97,7 +97,7 @@ describe Vagrant::LXC::Driver do before do sudo.should_receive(:run).with('cat', '/var/lib/lxc/name/config').exactly(2).times. and_return('# CONFIGURATION') - sudo.should_receive(:run).twice.with('cp', '-f', %r{/tmp/.*}, '/var/lib/lxc/name/config') + sudo.should_receive(:run).twice.with('cp', '-f', %r{/(run|tmp)/.*}, '/var/lib/lxc/name/config') sudo.should_receive(:run).twice.with('chown', 'root:root', '/var/lib/lxc/name/config') subject.customizations << internal_customization