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
1db64746
Commit
1db64746
authored
Apr 07, 2012
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Filter backtraces in specs error log.
parent
12a91103
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
spec_helper.rb
spec/spec_helper.rb
+11
-1
No files found.
spec/spec_helper.rb
View file @
1db64746
...
@@ -21,6 +21,16 @@ module Bacon
...
@@ -21,6 +21,16 @@ module Bacon
extend
ColorOutput
extend
ColorOutput
summary_at_exit
summary_at_exit
module
FilterBacktraces
def
handle_summary
ErrorLog
.
replace
(
ErrorLog
.
split
(
"
\n
"
).
reject
do
|
line
|
line
=~
%r{(gems/mocha|spec_helper)}
end
.
join
(
"
\n
"
).
lstrip
<<
"
\n\n
"
)
super
end
end
extend
FilterBacktraces
class
Context
class
Context
include
Pod
::
Config
::
Mixin
include
Pod
::
Config
::
Mixin
...
@@ -32,7 +42,7 @@ module Bacon
...
@@ -32,7 +42,7 @@ module Bacon
require
'colored'
require
'colored'
def
xit
(
description
,
*
args
)
def
xit
(
description
,
*
args
)
puts
"-
#{
description
}
[DISABLED]"
.
blue
puts
"-
#{
description
}
[DISABLED]"
.
yellow
ErrorLog
<<
"[DISABLED]
#{
self
.
name
}
#{
description
}
\n\n
"
ErrorLog
<<
"[DISABLED]
#{
self
.
name
}
#{
description
}
\n\n
"
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