Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing test for the issue #535 #551

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 15 additions & 0 deletions spec/unit/sandbox_spec.rb
Expand Up @@ -113,4 +113,19 @@
@sandbox.installed_pod_named('BananaLib', Pod::Platform.ios).should.eql pod
@sandbox.local_pod_for_spec(spec, Pod::Platform.ios).should.eql pod
end

it "returns a LocalPod for a subspec which source is expected to be in the sandbox" do
(@sandbox.root + 'Local Podspecs').mkdir
FileUtils.cp(fixture('chameleon') + 'Chameleon.podspec', @sandbox.root + 'Local Podspecs')
spec1 = Pod::Specification.from_file(@sandbox.root + 'Local Podspecs/Chameleon.podspec', 'Chameleon/UIKit')
spec2 = Pod::Specification.from_file(@sandbox.root + 'Local Podspecs/Chameleon.podspec', 'Chameleon/StoreKit')

pod1 = @sandbox.local_pod_for_spec(spec1, Pod::Platform.osx)
pod1.name.should.eql 'Chameleon/UIKit'
pod1.specifications.should.eql [spec1]

pod2 = @sandbox.local_pod_for_spec(spec2, Pod::Platform.osx)
pod2.name.should.eql 'Chameleon/StoreKit'
pod2.specifications.should.eql [spec2]
end
end