Commit d3416f10 authored by Samuel Giddins's avatar Samuel Giddins

[PreInstallHooksContext] Ensure the `sandbox_root` attribute is set

parent bc127ecf
......@@ -38,6 +38,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
multiple root-level Xcode projects.
[Samuel Giddins](https://github.com/segiddins)
* Ensure the `sandbox_root` attribute is set on the pre-install hooks context.
[Samuel Giddins](https://github.com/segiddins)
## 1.0.0.beta.1 (2015-12-30)
......
......@@ -33,6 +33,7 @@ module Pod
result = new
result.podfile = podfile
result.sandbox = sandbox
result.sandbox_root = sandbox.root.to_s
result.lockfile = lockfile
result
end
......
require File.expand_path('../../../spec_helper', __FILE__)
module Pod
describe Installer::PreInstallHooksContext do
it 'offers a convenience method to be generated' do
sandbox = stub
sandbox = stub(:root => Pathname('root'))
podfile = stub
lockfile = stub
result = Installer::PreInstallHooksContext.generate(sandbox, podfile, lockfile)
result.class.should == Installer::PreInstallHooksContext
result.sandbox.should == sandbox
result.sandbox_root == 'root'
result.podfile.should == podfile
result.lockfile.should == lockfile
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment