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
22e36e29
Commit
22e36e29
authored
Aug 28, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Command::Spec] Add new spec
parent
a9431a12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
spec_spec.rb
spec/functional/command/spec_spec.rb
+35
-1
No files found.
spec/functional/command/spec_spec.rb
View file @
22e36e29
...
...
@@ -174,7 +174,7 @@ module Pod
#-------------------------------------------------------------------------#
describe
"which subcommand"
do
describe
Command
::
Spec
::
Which
do
it
"errors if a given podspec doesn't exist"
do
e
=
lambda
{
command
(
'spec'
,
'which'
,
'some_pod_that_doesnt_exist'
).
run
}.
should
.
raise
Informative
e
.
message
.
should
.
match
/Unable to find a pod with/
...
...
@@ -191,6 +191,40 @@ module Pod
e
.
message
.
should
.
match
/More than one/
end
end
#-------------------------------------------------------------------------#
describe
Command
::
Spec
::
Cat
do
end
#-------------------------------------------------------------------------#
describe
Command
::
Spec
::
Edit
do
end
#-------------------------------------------------------------------------#
describe
"Private helpers"
do
describe
"#get_path_of_spec"
do
before
do
# TODO Use class methods
@sut
=
Command
::
Spec
.
new
(
CLAide
::
ARGV
.
new
([]))
end
it
"returns the path of the specification with the given name"
do
path
=
@sut
.
send
(
:get_path_of_spec
,
'AFNetworking'
)
path
.
should
==
fixture
(
'spec-repos'
)
+
'master/AFNetworking/1.2.0/AFNetworking.podspec'
end
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