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` ...@@ -38,6 +38,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
multiple root-level Xcode projects. multiple root-level Xcode projects.
[Samuel Giddins](https://github.com/segiddins) [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) ## 1.0.0.beta.1 (2015-12-30)
......
...@@ -33,6 +33,7 @@ module Pod ...@@ -33,6 +33,7 @@ module Pod
result = new result = new
result.podfile = podfile result.podfile = podfile
result.sandbox = sandbox result.sandbox = sandbox
result.sandbox_root = sandbox.root.to_s
result.lockfile = lockfile result.lockfile = lockfile
result result
end end
......
require File.expand_path('../../../spec_helper', __FILE__) require File.expand_path('../../../spec_helper', __FILE__)
module Pod module Pod
describe Installer::PreInstallHooksContext do describe Installer::PreInstallHooksContext do
it 'offers a convenience method to be generated' do it 'offers a convenience method to be generated' do
sandbox = stub sandbox = stub(:root => Pathname('root'))
podfile = stub podfile = stub
lockfile = stub lockfile = stub
result = Installer::PreInstallHooksContext.generate(sandbox, podfile, lockfile) result = Installer::PreInstallHooksContext.generate(sandbox, podfile, lockfile)
result.class.should == Installer::PreInstallHooksContext result.class.should == Installer::PreInstallHooksContext
result.sandbox.should == sandbox result.sandbox.should == sandbox
result.sandbox_root == 'root'
result.podfile.should == podfile result.podfile.should == podfile
result.lockfile.should == lockfile result.lockfile.should == lockfile
end 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