Commit 8842ceec authored by Marius Rackwitz's avatar Marius Rackwitz

[Spec] Name the thing by what you expect it to be

parent 437c3481
...@@ -207,8 +207,8 @@ module Pod ...@@ -207,8 +207,8 @@ module Pod
target_definition.set_platform(:ios, '4.0') target_definition.set_platform(:ios, '4.0')
user_targets = [] user_targets = []
configurations = TargetInspector.new(target_definition).send(:compute_platform, user_targets) platforms = TargetInspector.new(target_definition).send(:compute_platform, user_targets)
configurations.should == Platform.new(:ios, '4.0') platforms.should == Platform.new(:ios, '4.0')
end end
it 'infers the platform from the user targets' do it 'infers the platform from the user targets' do
...@@ -220,8 +220,8 @@ module Pod ...@@ -220,8 +220,8 @@ module Pod
target_definition = Podfile::TargetDefinition.new(:default, nil) target_definition = Podfile::TargetDefinition.new(:default, nil)
user_targets = [target] user_targets = [target]
configurations = TargetInspector.new(target_definition).send(:compute_platform, user_targets) platforms = TargetInspector.new(target_definition).send(:compute_platform, user_targets)
configurations.should == Platform.new(:ios, '4.0') platforms.should == Platform.new(:ios, '4.0')
end end
it 'uses the lowest deployment target of the user targets if inferring the platform' do it 'uses the lowest deployment target of the user targets if inferring the platform' do
...@@ -238,8 +238,8 @@ module Pod ...@@ -238,8 +238,8 @@ module Pod
target_definition = Podfile::TargetDefinition.new(:default, nil) target_definition = Podfile::TargetDefinition.new(:default, nil)
user_targets = [target1, target2] user_targets = [target1, target2]
configurations = TargetInspector.new(target_definition).send(:compute_platform, user_targets) platforms = TargetInspector.new(target_definition).send(:compute_platform, user_targets)
configurations.should == Platform.new(:ios, '4.0') platforms.should == Platform.new(:ios, '4.0')
end end
it 'raises if the user targets have a different platform' do it 'raises if the user targets have a different platform' 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