mirror of
https://github.com/zhigang1992/CocoaPods.git
synced 2026-04-30 10:22:26 +08:00
Fix integration spec, which was trying to assign a source to subspecs.
This commit is contained in:
@@ -9,6 +9,7 @@ module SpecHelper
|
||||
def specs_by_target
|
||||
@specs_by_target ||= super.tap do |hash|
|
||||
hash.values.flatten.each do |spec|
|
||||
next if spec.subspec?
|
||||
source = spec.source
|
||||
source[:git] = SpecHelper.fixture("integration/#{spec.name}").to_s
|
||||
spec.source = source
|
||||
@@ -167,8 +168,16 @@ else
|
||||
installer = SpecHelper::Installer.new(podfile)
|
||||
installer.install!
|
||||
|
||||
# TODO might be nicer looking to not show the dependencies of the top level spec for each subspec (Reachability).
|
||||
YAML.load(installer.lock_file.read).should == {
|
||||
"PODS" => [{ "ASIHTTPRequest (1.8.1)" => ["Reachability"] }, "JSONKit (1.4)", "Reachability (3.0.0)"],
|
||||
"PODS" => [{ "ASIHTTPRequest (1.8.1)" => ["ASIHTTPRequest/ASIWebPageRequest (= 1.8.1)",
|
||||
"ASIHTTPRequest/CloudFiles (= 1.8.1)",
|
||||
"ASIHTTPRequest/S3 (= 1.8.1)",
|
||||
"Reachability"]},
|
||||
{ "ASIHTTPRequest/ASIWebPageRequest (1.8.1)" => ["Reachability"] },
|
||||
{ "ASIHTTPRequest/CloudFiles (1.8.1)" => ["Reachability"] },
|
||||
{ "ASIHTTPRequest/S3 (1.8.1)" => ["Reachability"] },
|
||||
"JSONKit (1.4)", "Reachability (3.0.0)"],
|
||||
"DEPENDENCIES" => ["ASIHTTPRequest", "JSONKit (= 1.4)"]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user