Box#directory properly passes environment to class method
This commit is contained in:
parent
ea25f49c63
commit
36648e7a12
|
@ -145,7 +145,7 @@ module Vagrant
|
||||||
#
|
#
|
||||||
# @return [String]
|
# @return [String]
|
||||||
def directory
|
def directory
|
||||||
self.class.directory(self.name)
|
self.class.directory(env, self.name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
|
@ -119,7 +119,7 @@ class BoxTest < Test::Unit::TestCase
|
||||||
|
|
||||||
should "return the boxes_path joined with the name" do
|
should "return the boxes_path joined with the name" do
|
||||||
result = mock("object")
|
result = mock("object")
|
||||||
Vagrant::Box.expects(:directory).with(@box.name).returns(result)
|
Vagrant::Box.expects(:directory).with(@box.env, @box.name).returns(result)
|
||||||
assert result.equal?(@box.directory)
|
assert result.equal?(@box.directory)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue