Commit 8f744078 authored by Francis Chong's avatar Francis Chong

Add dummy source related spec to integration spec

Fix a bug that pod name with '-' will make dummy source generate inproperly
parent 967b8aba
module Pod
module Generator
class DummySource
def initialize(label)
@label = label
def initialize(label="Pods")
@label = label.gsub(/[^a-zA-Z]/, '')
end
def save_as(pathname)
......
......@@ -120,7 +120,7 @@ else
end
it "install a dummy source file" do
url = 'https://raw.github.com/gist/1349824/3ec6aa60c19113573fc48eac19d0fafd6a69e033/Reachability.podspec'
create_config!
podfile = Pod::Podfile.new do
self.platform :ios
xcodeproj 'dummy'
......@@ -134,7 +134,9 @@ else
installer = SpecHelper::Installer.new(podfile)
installer.install!
dummy = (config.project_pods_root + 'PodsDummy.m').read
dummy.should.include?('@implementation PodsDummy')
end
it "installs a library with a podspec defined inline" do
......
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