Skip to content

Commit ed8980c

Browse files
committed
Run tests on iPhone 6
1 parent 4cdfd69 commit ed8980c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

CocoaPodsTests/test_running_validator.rb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ class TestRunningValidator < Pod::Validator
77
TEST_TARGET = 'Tests'
88

99
attr_accessor :test_files
10+
attr_accessor :iphone_simulator
11+
attr_accessor :tvos_simulator
12+
13+
def initialize(spec_or_path, source_urls)
14+
super(spec_or_path, source_urls)
15+
self.iphone_simulator = 'iPhone 6'
16+
self.tvos_simulator = 'Apple TV 1080p'
17+
end
1018

1119
def create_app_project
1220
super.tap do
@@ -67,12 +75,12 @@ def run_tests
6775
case consumer.platform_name
6876
when :ios
6977
command += %w(CODE_SIGN_IDENTITY=- -sdk iphonesimulator)
70-
command += Fourflusher::SimControl.new.destination('iPhone 4s', deployment_target)
78+
command += Fourflusher::SimControl.new.destination(iphone_simulator, deployment_target)
7179
when :osx
7280
command += %w(LD_RUNPATH_SEARCH_PATHS=@loader_path/../Frameworks)
7381
when :tvos
7482
command += %w(CODE_SIGN_IDENTITY=- -sdk appletvsimulator)
75-
command += Fourflusher::SimControl.new.destination('Apple TV 1080p', deployment_target)
83+
command += Fourflusher::SimControl.new.destination(tvos_simulator, deployment_target)
7684
else
7785
return # skip watchos
7886
end

0 commit comments

Comments
 (0)