Commit 47a8a68f authored by Fabio Pelosin's avatar Fabio Pelosin

[Specs] Fix issues related to sorting files

parent fad4b5ab
...@@ -41,29 +41,29 @@ module Pod ...@@ -41,29 +41,29 @@ module Pod
describe "Returning files" do describe "Returning files" do
it "returns the source files" do it "returns the source files" do
@accessor.source_files.should == [ @accessor.source_files.sort.should == [
@root + "Classes/Banana.m",
@root + "Classes/Banana.h", @root + "Classes/Banana.h",
@root + "Classes/Banana.m",
@root + "Classes/BananaPrivate.h" @root + "Classes/BananaPrivate.h"
].sort ]
end end
it "returns the header files" do it "returns the header files" do
@accessor.headers.should == [ @accessor.headers.sort.should == [
@root + "Classes/Banana.h", @root + "Classes/Banana.h",
@root + "Classes/BananaPrivate.h" @root + "Classes/BananaPrivate.h"
] ]
end end
it "returns the public headers" do it "returns the public headers" do
@accessor.public_headers.should == [ @accessor.public_headers.sort.should == [
@root + "Classes/Banana.h" @root + "Classes/Banana.h"
] ]
end end
it "returns all the headers if no public headers are defined" do it "returns all the headers if no public headers are defined" do
@spec_consumer.stubs(:public_header_files).returns([]) @spec_consumer.stubs(:public_header_files).returns([])
@accessor.public_headers.should == [ @accessor.public_headers.sort.should == [
@root + "Classes/Banana.h", @root + "Classes/Banana.h",
@root + "Classes/BananaPrivate.h" @root + "Classes/BananaPrivate.h"
] ]
...@@ -76,7 +76,7 @@ module Pod ...@@ -76,7 +76,7 @@ module Pod
end end
it "returns the preserve path" do it "returns the preserve path" do
@accessor.preserve_paths.should == [ @accessor.preserve_paths.sort.should == [
@root + "preserve_me.txt" @root + "preserve_me.txt"
] ]
end end
...@@ -97,10 +97,10 @@ module Pod ...@@ -97,10 +97,10 @@ module Pod
it "respects the exclude files" do it "respects the exclude files" do
@spec_consumer.stubs(:exclude_files).returns(["Classes/BananaPrivate.h"]) @spec_consumer.stubs(:exclude_files).returns(["Classes/BananaPrivate.h"])
@accessor.source_files.should == [ @accessor.source_files.sort.should == [
@root + "Classes/Banana.m",
@root + "Classes/Banana.h", @root + "Classes/Banana.h",
].sort @root + "Classes/Banana.m",
]
end end
end end
...@@ -126,10 +126,10 @@ module Pod ...@@ -126,10 +126,10 @@ module Pod
it "can handle Rake FileLists" do it "can handle Rake FileLists" do
@spec_consumer.stubs(:source_files).returns([FileList['Classes/Banana.*']]) @spec_consumer.stubs(:source_files).returns([FileList['Classes/Banana.*']])
@accessor.source_files.should == [ @accessor.source_files.sort.should == [
@root + "Classes/Banana.m",
@root + "Classes/Banana.h", @root + "Classes/Banana.h",
].sort @root + "Classes/Banana.m",
]
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