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