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