Box#directory properly passes environment to class method

This commit is contained in:
Mitchell Hashimoto 2010-03-20 00:52:28 -07:00
parent ea25f49c63
commit 36648e7a12
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ module Vagrant
#
# @return [String]
def directory
self.class.directory(self.name)
self.class.directory(env, self.name)
end
end
end

View File

@ -119,7 +119,7 @@ class BoxTest < Test::Unit::TestCase
should "return the boxes_path joined with the name" do
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)
end
end