Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
47a8a68f
Commit
47a8a68f
authored
Feb 05, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Specs] Fix issues related to sorting files
parent
fad4b5ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
file_accessor_spec.rb
spec/unit/sandbox/file_accessor_spec.rb
+13
-13
No files found.
spec/unit/sandbox/file_accessor_spec.rb
View file @
47a8a68f
...
@@ -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
.
s
ort
.
s
hould
==
[
@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
.
s
ort
.
s
hould
==
[
@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
.
s
ort
.
s
hould
==
[
@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
.
s
ort
.
s
hould
==
[
@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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment