Commit f4326c73 authored by Fabio Pelosin's avatar Fabio Pelosin

[Specs] Minor fix.

parent c2d6a3fe
...@@ -139,7 +139,7 @@ describe Pod::LocalPod do ...@@ -139,7 +139,7 @@ describe Pod::LocalPod do
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
...@@ -272,7 +272,7 @@ describe Pod::LocalPod do ...@@ -272,7 +272,7 @@ describe Pod::LocalPod do
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",
...@@ -283,7 +283,7 @@ describe Pod::LocalPod do ...@@ -283,7 +283,7 @@ describe Pod::LocalPod do
@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",
......
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