Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Failing test for the issue #535 #551

Closed
wants to merge 1 commit into from

2 participants

@ap4y

Test for the issue with sandbox pods caching.

@ap4y ap4y closed this
@fabiopelosin
Owner

Sorry for not merging this. The architecture related to this issue has changed considerably and so the test was not suitable anymore. The issue should be fixed now. Thanks for taking the time submit the pull.

@ap4y

No worries Fabio. Thanks for the fix!

@jzapater jzapater referenced this pull request from a commit in jzapater/CocoaPods
@chakrit chakrit [PSTCollectionView] Specify exact commit sha instead of HEAD. #551 1be7eb8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 24, 2012
  1. @ap4y

    Added test for the issue #535

    ap4y authored
This page is out of date. Refresh to see the latest.
Showing with 15 additions and 0 deletions.
  1. +15 −0 spec/unit/sandbox_spec.rb
View
15 spec/unit/sandbox_spec.rb
@@ -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
Something went wrong with that request. Please try again.