Skip to content

Commit

Permalink
[Specs] Minor fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Jun 21, 2012
1 parent c2d6a3f commit f4326c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/unit/local_pod_spec.rb
Expand Up @@ -139,7 +139,7 @@ def assert_array_equals(expected, computed)
end end


it "resolve the resources" do 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.png",
"Chameleon/UIKit/Resources/<UITabBar> background@2x.png" ] "Chameleon/UIKit/Resources/<UITabBar> background@2x.png" ]
end end
Expand Down Expand Up @@ -272,7 +272,7 @@ def assert_array_equals(expected, computed)
it "returns a hash of mappings with a custom header dir prefix" do it "returns a hash of mappings with a custom header dir prefix" do
mappings = @pod.send(:header_mappings) mappings = @pod.send(:header_mappings)
mappings = mappings.map do |folder, headers| 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 end
mappings.sort.should == [ mappings.sort.should == [
"Chameleon/StoreKit > StoreKit/Classes/SKPayment.h StoreKit/Classes/StoreKit.h", "Chameleon/StoreKit > StoreKit/Classes/SKPayment.h StoreKit/Classes/StoreKit.h",
Expand All @@ -283,7 +283,7 @@ def assert_array_equals(expected, computed)
@pod.stubs(:headers_excluded_from_search_paths).returns([@pod.root + 'UIKit/Classes/UIKit.h']) @pod.stubs(:headers_excluded_from_search_paths).returns([@pod.root + 'UIKit/Classes/UIKit.h'])
mappings = @pod.send(:header_mappings) mappings = @pod.send(:header_mappings)
mappings = mappings.map do |folder, headers| 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 end
mappings.sort.should == [ mappings.sort.should == [
"Chameleon/StoreKit > StoreKit/Classes/SKPayment.h StoreKit/Classes/StoreKit.h", "Chameleon/StoreKit > StoreKit/Classes/SKPayment.h StoreKit/Classes/StoreKit.h",
Expand Down

0 comments on commit f4326c7

Please sign in to comment.