Commit f5ddb026 authored by Marius Rackwitz's avatar Marius Rackwitz

[Spec] Use snake_case to separate words in var names

s/target([ab])/target_\1/
parent 8842ceec
......@@ -185,14 +185,14 @@ module Pod
it 'handles an Array of ARCHs defined multiple user targets' do
user_project = Xcodeproj::Project.new('path')
targeta = user_project.new_target(:application, 'Target', :ios)
targeta.build_configuration_list.set_setting('ARCHS', %w(armv7 armv7s))
targetb = user_project.new_target(:application, 'Target', :ios)
targetb.build_configuration_list.set_setting('ARCHS', %w(armv7 i386))
target_a = user_project.new_target(:application, 'Target', :ios)
target_a.build_configuration_list.set_setting('ARCHS', %w(armv7 armv7s))
target_b = user_project.new_target(:application, 'Target', :ios)
target_b.build_configuration_list.set_setting('ARCHS', %w(armv7 i386))
target_definition = Podfile::TargetDefinition.new(:default, nil)
target_definition.set_platform(:ios, '4.0')
user_targets = [targeta, targetb]
user_targets = [target_a, target_b]
archs = TargetInspector.new(target_definition).send(:compute_archs, user_targets)
%w(armv7 armv7s i386).each { |a| archs.should.include a }
......
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