Commit 5abe739a authored by Marius Rackwitz's avatar Marius Rackwitz

[Spec] Compare arrays with sort

parent f051e278
...@@ -180,7 +180,7 @@ module Pod ...@@ -180,7 +180,7 @@ module Pod
user_targets = [target] user_targets = [target]
archs = TargetInspector.new(target_definition).send(:compute_archs, user_targets) archs = TargetInspector.new(target_definition).send(:compute_archs, user_targets)
%w(armv7 i386).each { |a| archs.should.include a } archs.uniq.sort.should == %w(armv7 i386)
end end
it 'handles an Array of ARCHs defined multiple user targets' do it 'handles an Array of ARCHs defined multiple user targets' do
...@@ -195,7 +195,7 @@ module Pod ...@@ -195,7 +195,7 @@ module Pod
user_targets = [target_a, target_b] user_targets = [target_a, target_b]
archs = TargetInspector.new(target_definition).send(:compute_archs, user_targets) archs = TargetInspector.new(target_definition).send(:compute_archs, user_targets)
%w(armv7 armv7s i386).each { |a| archs.should.include a } archs.uniq.sort.should == %w(armv7 armv7s i386)
end end
end end
......
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