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
3965697e
Commit
3965697e
authored
Aug 25, 2013
by
Marin Usalj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 1.9.3 tests
parent
502de5a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
config.rb
lib/cocoapods/command/config.rb
+1
-1
config_spec.rb
spec/functional/command/config_spec.rb
+2
-4
No files found.
lib/cocoapods/command/config.rb
View file @
3965697e
...
@@ -100,7 +100,7 @@ module Pod
...
@@ -100,7 +100,7 @@ module Pod
end
end
def
write_config_to_file
def
write_config_to_file
File
.
write
(
CONFIG_FILE_PATH
,
config_hash
.
delete_blank
.
to_yaml
)
File
.
open
(
CONFIG_FILE_PATH
,
'w'
)
{
|
f
|
f
.
write
(
config_hash
.
delete_blank
.
to_yaml
)
}
end
end
end
end
...
...
spec/functional/command/config_spec.rb
View file @
3965697e
...
@@ -12,8 +12,7 @@ module Pod
...
@@ -12,8 +12,7 @@ module Pod
project_name
=
'SampleProject'
project_name
=
'SampleProject'
before
do
before
do
Config
.
instance
=
nil
Dir
.
stubs
(
:pwd
).
returns
(
'~/code/OSS/SampleProject'
)
def
Dir
.
pwd
;
'~/code/OSS/SampleProject'
;
end
@config_file_path
=
temporary_directory
+
"mock_config"
@config_file_path
=
temporary_directory
+
"mock_config"
Command
::
Config
.
send
(
:remove_const
,
'CONFIG_FILE_PATH'
)
Command
::
Config
.
send
(
:remove_const
,
'CONFIG_FILE_PATH'
)
...
@@ -47,8 +46,7 @@ module Pod
...
@@ -47,8 +46,7 @@ module Pod
lambda
{
run_command
(
"config"
,
"--local"
,
'ObjectiveSugar'
)
},
lambda
{
run_command
(
"config"
,
"--local"
,
'ObjectiveSugar'
)
},
lambda
{
run_command
(
"config"
,
"--global"
,
'ObjectiveSugar'
)
},
lambda
{
run_command
(
"config"
,
"--global"
,
'ObjectiveSugar'
)
},
lambda
{
run_command
(
"config"
,
'~/code/OSS/ObjectiveSugar'
)
},
lambda
{
run_command
(
"config"
,
'~/code/OSS/ObjectiveSugar'
)
},
]
].
each
{
|
invalid
|
invalid
.
should
.
raise
CLAide
::
Help
}
.
each
{
|
invalid
|
invalid
.
should
.
raise
CLAide
::
Help
}
end
end
it
"deletes local configuration by default"
do
it
"deletes local configuration by default"
do
...
...
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