Permalink
Browse files

[Specs] Minor fix.

  • Loading branch information...
fabiopelosin committed Jun 21, 2012
1 parent c2d6a3f commit f4326c7365f9b7be856991ab51f2f7fda3675585
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/unit/local_pod_spec.rb
@@ -139,7 +139,7 @@ def assert_array_equals(expected, computed)
end
it "resolve the resources" do
- @pod.relative_resource_files.map(&:to_s).should == [
+ @pod.relative_resource_files.map(&:to_s).sort.should == [
"Chameleon/UIKit/Resources/<UITabBar> background.png",
"Chameleon/UIKit/Resources/<UITabBar> background@2x.png" ]
end
@@ -272,7 +272,7 @@ def assert_array_equals(expected, computed)
it "returns a hash of mappings with a custom header dir prefix" do
mappings = @pod.send(:header_mappings)
mappings = mappings.map do |folder, headers|
- "#{folder} > #{headers.map{ |p| p.relative_path_from(@pod.root).to_s }.join(' ')}"
+ "#{folder} > #{headers.sort.map{ |p| p.relative_path_from(@pod.root).to_s }.join(' ')}"
end
mappings.sort.should == [
"Chameleon/StoreKit > StoreKit/Classes/SKPayment.h StoreKit/Classes/StoreKit.h",
@@ -283,7 +283,7 @@ def assert_array_equals(expected, computed)
@pod.stubs(:headers_excluded_from_search_paths).returns([@pod.root + 'UIKit/Classes/UIKit.h'])
mappings = @pod.send(:header_mappings)
mappings = mappings.map do |folder, headers|
- "#{folder} > #{headers.map{ |p| p.relative_path_from(@pod.root).to_s }.join(' ')}"
+ "#{folder} > #{headers.sort.map{ |p| p.relative_path_from(@pod.root).to_s }.join(' ')}"
end
mappings.sort.should == [
"Chameleon/StoreKit > StoreKit/Classes/SKPayment.h StoreKit/Classes/StoreKit.h",

0 comments on commit f4326c7

Please sign in to comment.