Skip to content

Commit

Permalink
Integration Test for square#24
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 committed May 26, 2019
1 parent d6fdbff commit ea11dc1
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 0 deletions.
19 changes: 19 additions & 0 deletions spec/integration/dep_podspec/before/Bar.podspec
@@ -0,0 +1,19 @@
# frozen_string_literal: true

Pod::Specification.new do |s|
s.name = 'Bar'
s.version = '1.0.0'

s.authors = %w[Square]
s.homepage = 'https://github.com/Square/cocoapods-generate'
s.source = { git: 'https://github.com/Square/cocoapods-generate' }
s.summary = 'Testing pod'

s.ios.deployment_target = '9.0'

s.source_files = 'Sources'

s.test_spec 'Tests' do |ts|
ts.source_files = 'Tests'
end
end
24 changes: 24 additions & 0 deletions spec/integration/dep_podspec/before/Foo.podspec
@@ -0,0 +1,24 @@
# frozen_string_literal: true

Pod::Specification.new do |s|
s.name = 'Foo'
s.version = '1.0.0'

s.authors = %w[Square]
s.homepage = 'https://github.com/Square/cocoapods-generate'
s.source = { git: 'https://github.com/Square/cocoapods-generate' }
s.summary = 'Testing pod'

s.ios.deployment_target = '9.0'
s.macos.deployment_target = '10.10'
s.watchos.deployment_target = '4.0'
s.tvos.deployment_target = '11.0'

s.source_files = 'Sources'

s.ios.dependency 'Bar'

s.test_spec 'Tests' do |ts|
ts.source_files = 'Tests'
end
end
6 changes: 6 additions & 0 deletions spec/integration/dep_podspec/before/Sources/Foo.m
@@ -0,0 +1,6 @@
@interface Foo: NSObject
@end

@implementation Foo
+ (void)load { NSLog(@"Loaded %@", self); }
@end
12 changes: 12 additions & 0 deletions spec/integration/dep_podspec/before/Tests/FooTests.m
@@ -0,0 +1,12 @@
#import <XCTest/XCTest.h>

@interface FooTests: XCTestCase
@end

@implementation FooTests

- (void)testFoo {
XCTAssertTrue(YES);
}

@end
2 changes: 2 additions & 0 deletions spec/integration/dep_podspec/spec.yml
@@ -0,0 +1,2 @@
description: generates a workspace for a podspec with a single platform specific dependency
args: 'Foo.podspec --local-sources="./"'

0 comments on commit ea11dc1

Please sign in to comment.