Commit 9976cc0d authored by Eloy Duran's avatar Eloy Duran

Fix a bug that made multiple inline specs not work.

parent f8bdf082
......@@ -92,6 +92,10 @@ module Pod
@specification.name
end
def ==(other)
self.class === other && name == other.name
end
def required_by(specification)
before = @specification
super(specification)
......
......@@ -99,17 +99,23 @@ else
dependency do |s|
s.name = 'JSONKit'
s.version = '1.2'
s.source = { :git => 'https://github.com/johnezang/JSONKit.git', :tag => 'v1.2' }
s.source = { :git => SpecHelper.fixture('integration/JSONKit').to_s, :tag => 'v1.2' }
s.source_files = 'JSONKit.*'
end
dependency do |s|
s.name = 'SSZipArchive'
s.version = '0.1.0'
s.source = { :git => SpecHelper.fixture('integration/SSZipArchive').to_s, :tag => '0.1.0' }
s.source_files = 'SSZipArchive.*', 'minizip/*.{h,c}'
end
end
installer = SpecHelper::Installer.new(podfile)
installer.install!
YAML.load(installer.lock_file.read).should == {
'PODS' => ['JSONKit (1.2)'],
'DEPENDENCIES' => ["JSONKit (defined in Podfile)"]
'PODS' => ['JSONKit (1.2)', 'SSZipArchive (0.1.0)'],
'DEPENDENCIES' => ["JSONKit (defined in Podfile)", "SSZipArchive (defined in Podfile)"]
}
change_log = (config.project_pods_root + 'JSONKit/CHANGELOG.md').read
......
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