module RSpec::LegacyFormatters::Adaptor::LegacyColorSupport
@private
Public Instance Methods
blue(text)
click to toggle source
# File lib/rspec/legacy_formatters/adaptor.rb, line 32 def blue(text) RSpec.deprecate("RSpec::Core::Formatters::BaseTextFormatter#blue", :replacement => "#fixed_color") color(text, :blue) end
color_code_for(code_or_symbol)
click to toggle source
These are part of the deprecated interface, so no individual deprecations
# File lib/rspec/legacy_formatters/adaptor.rb, line 70 def color_code_for(code_or_symbol) ::RSpec::Core::Formatters::ConsoleCodes.console_code_for(code_or_symbol) end
colorize(text, code_or_symbol)
click to toggle source
# File lib/rspec/legacy_formatters/adaptor.rb, line 74 def colorize(text, code_or_symbol) ::RSpec::Core::Formatters::ConsoleCodes.wrap(text, code_or_symbol) end
colorize_summary(summary)
click to toggle source
# File lib/rspec/legacy_formatters/adaptor.rb, line 78 def colorize_summary(summary) if failure_count > 0 color(summary, RSpec.configuration.failure_color) elsif pending_count > 0 color(summary, RSpec.configuration.pending_color) else color(summary, RSpec.configuration.success_color) end end
cyan(text)
click to toggle source
# File lib/rspec/legacy_formatters/adaptor.rb, line 42 def cyan(text) RSpec.deprecate("RSpec::Core::Formatters::BaseTextFormatter#cyan", :replacement => "#detail_color") color(text, :cyan) end
green(text)
click to toggle source
# File lib/rspec/legacy_formatters/adaptor.rb, line 22 def green(text) RSpec.deprecate("RSpec::Core::Formatters::BaseTextFormatter#green", :replacement => "#success_color") color(text, :green) end
magenta(text)
click to toggle source
# File lib/rspec/legacy_formatters/adaptor.rb, line 37 def magenta(text) RSpec.deprecate("RSpec::Core::Formatters::BaseTextFormatter#magenta") color(text, :magenta) end
red(text)
click to toggle source
# File lib/rspec/legacy_formatters/adaptor.rb, line 17 def red(text) RSpec.deprecate("RSpec::Core::Formatters::BaseTextFormatter#red", :replacement => "#failure_color") color(text, :red) end
white(text)
click to toggle source
# File lib/rspec/legacy_formatters/adaptor.rb, line 47 def white(text) RSpec.deprecate("RSpec::Core::Formatters::BaseTextFormatter#white", :replacement => "#default_color") color(text, :white) end
yellow(text)
click to toggle source
# File lib/rspec/legacy_formatters/adaptor.rb, line 27 def yellow(text) RSpec.deprecate("RSpec::Core::Formatters::BaseTextFormatter#yellow", :replacement => "#pending_color") color(text, :yellow) end