Make environment tests fast again
This commit is contained in:
parent
5a13347fb4
commit
9a0834d263
|
@ -167,7 +167,7 @@ class EnvironmentTest < Test::Unit::TestCase
|
||||||
|
|
||||||
context "accessing host" do
|
context "accessing host" do
|
||||||
should "load the host once" do
|
should "load the host once" do
|
||||||
env = @klass.new(:cwd => vagrant_app)
|
env = @klass.new(:cwd => vagrantfile)
|
||||||
result = mock("result")
|
result = mock("result")
|
||||||
Vagrant::Hosts::Base.expects(:load).with(env, env.config.vagrant.host).once.returns(result)
|
Vagrant::Hosts::Base.expects(:load).with(env, env.config.vagrant.host).once.returns(result)
|
||||||
assert_equal result, env.host
|
assert_equal result, env.host
|
||||||
|
|
Loading…
Reference in New Issue