class FlipSpec
Constants
- COLOURS
- METHODS
Public Class Methods
new(output)
click to toggle source
# File lib/flip_spec.rb, line 7 def initialize(output) @output = output end
Public Instance Methods
example_failed(notification)
click to toggle source
# File lib/flip_spec.rb, line 15 def example_failed(notification) @output << colour_text(' (╯°□°)╯ ︵ ┻━━┻ : ' + notification.example.description.upcase, 31) end
example_passed(notification)
click to toggle source
# File lib/flip_spec.rb, line 19 def example_passed(notification) @output << colour_text('*・゚✧ ┬──┬ ・*゚✧・ : ' + notification.example.description.upcase, 32) end
start(*)
click to toggle source
# File lib/flip_spec.rb, line 11 def start(*) @output << colour_text('🍰 F 🍰 L 🍰 I 🍰 P - S 🍰 P 🍰 E 🍰 C 🍰', 35) end
Private Instance Methods
colour_text(string, colour)
click to toggle source
# File lib/flip_spec.rb, line 25 def colour_text(string, colour) "\033[#{colour}m#{string}\033[0m\n" end