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
ff745f82
Commit
ff745f82
authored
Nov 23, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SpecHelper] Fine tune bacon helper.
parent
1a883aba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
bacon.rb
spec/spec_helper/bacon.rb
+13
-9
No files found.
spec/spec_helper/bacon.rb
View file @
ff745f82
...
...
@@ -81,16 +81,20 @@ module Bacon
end
def
handle_requirement
(
description
,
disabled
=
false
)
error
=
yield
if
!
error
.
empty?
m
=
error
[
0
..
0
]
c
=
(
m
==
"E"
?
:
red
:
:yellow
)
unless
@first_error
print
Bacon
.
color
(
c
,
m
)
@first_error
=
true
elsif
disabled
print
"D"
if
@first_error
print
Bacon
.
color
(
nil
,
'_'
)
else
print
Bacon
.
color
(
nil
,
'.'
)
error
=
yield
if
!
error
.
empty?
m
=
error
[
0
..
0
]
c
=
(
m
==
"E"
?
:
red
:
:yellow
)
unless
@first_error
print
Bacon
.
color
(
c
,
m
)
@first_error
=
true
elsif
disabled
print
"D"
else
print
Bacon
.
color
(
nil
,
'.'
)
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