Make environment tests fast again

This commit is contained in:
Mitchell Hashimoto 2010-09-07 01:03:27 -07:00
parent 5a13347fb4
commit 9a0834d263
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class EnvironmentTest < Test::Unit::TestCase
context "accessing host" do
should "load the host once" do
env = @klass.new(:cwd => vagrant_app)
env = @klass.new(:cwd => vagrantfile)
result = mock("result")
Vagrant::Hosts::Base.expects(:load).with(env, env.config.vagrant.host).once.returns(result)
assert_equal result, env.host