Commit 742cab3c authored by Soutaro Matsumoto's avatar Soutaro Matsumoto

Add test

parent 5c043059
......@@ -166,6 +166,20 @@ module Pod
end
end
describe 'Reading file system' do
it 'orders paths case insensitively' do
root = fixture('banana-lib')
# Let Dir.glob result be ordered case-sensitively
Dir.stubs(:glob).returns(["#{root}/Classes/NSFetchRequest+Banana.h",
"#{root}/Classes/NSFetchedResultsController+Banana.h"])
File.stubs(:directory?).returns(false)
path_list = Sandbox::PathList.new(fixture('banana-lib'))
path_list.files.should == %w(Classes/NSFetchedResultsController+Banana.h Classes/NSFetchRequest+Banana.h)
end
end
#-------------------------------------------------------------------------#
describe 'Private Helpers' do
......
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