From 494bc07e5f946619381571cf21e9254ecc218da1 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sat, 13 Jul 2013 14:02:13 -0300 Subject: [PATCH] Fix broken spec --- spec/unit/action/clear_forwarded_ports_spec.rb | 1 + spec/unit/driver_spec.rb | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/unit/action/clear_forwarded_ports_spec.rb b/spec/unit/action/clear_forwarded_ports_spec.rb index af1380e..97a5f3a 100644 --- a/spec/unit/action/clear_forwarded_ports_spec.rb +++ b/spec/unit/action/clear_forwarded_ports_spec.rb @@ -1,5 +1,6 @@ require 'unit_helper' +require 'tmpdir' require 'vagrant-lxc/action/clear_forwarded_ports' describe Vagrant::LXC::Action::ClearForwardedPorts do diff --git a/spec/unit/driver_spec.rb b/spec/unit/driver_spec.rb index 3f4fccf..f13dd34 100644 --- a/spec/unit/driver_spec.rb +++ b/spec/unit/driver_spec.rb @@ -74,7 +74,6 @@ describe Vagrant::LXC::Driver do describe 'start' do let(:customizations) { [['a', '1'], ['b', '2']] } let(:internal_customization) { ['internal', 'customization'] } - let(:rootfs) { ['rootfs', subject.rootfs_path.to_s] } let(:cli) { instance_double('Vagrant::LXC::Driver::CLI', start: true) } subject { described_class.new('name', cli) } @@ -86,7 +85,7 @@ describe Vagrant::LXC::Driver do end it 'starts container with configured customizations' do - cli.should have_received(:start).with(customizations + [internal_customization, rootfs], nil) + cli.should have_received(:start).with(customizations + [internal_customization], nil) end it 'expects a transition to running state to take place' do