test/vagrant/box_test.rb in vagrant-0.3.0 vs test/vagrant/box_test.rb in vagrant-0.3.1

- old
+ new

@@ -110,10 +110,11 @@ end context "instance methods" do setup do @box = Vagrant::Box.new + @box.env = mock_environment end should "execute the Add action when add is called" do @box.expects(:execute!).with(Vagrant::Actions::Box::Add).once @box.add @@ -139,13 +140,15 @@ end context "ovf file" do setup do @box.stubs(:directory).returns("foo") + + @box.env.config.vm.box_ovf = "foo.ovf" end should "be the directory joined with the config ovf file" do - assert_equal File.join(@box.directory, Vagrant.config.vm.box_ovf), @box.ovf_file + assert_equal File.join(@box.directory, @box.env.config.vm.box_ovf), @box.ovf_file end end end end