Class: Cloudspeq::RspecOutputter
- Inherits:
-
Object
- Object
- Cloudspeq::RspecOutputter
- Defined in:
- lib/cloudspeq/rspec_outputter.rb
Class Method Summary collapse
Class Method Details
.color(color, text) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/cloudspeq/rspec_outputter.rb', line 4 def self.color(color, text) colors = {red: "0;31", blue: '0;34', green: '0;32', yellow: '1;33', light_green: '1;32', light_red:'1;31', light_blue: '1;34', purple: '0;35', light_purple: '1;35' } "\033[#{colors[color]}m #{text} \033[0m" end |
.perform(outputs) ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/cloudspeq/rspec_outputter.rb', line 19 def self.perform(outputs) puts "\n\n ***** Spec Report *****\n\n" @failures = [] @outputs = outputs['outputs'] output_summary_lines output_failures puts "Total Time: #{outputs['time']}" end |