Sha256: 27dd5dd438af7368a88a58b4d99470f1b957ea25fd2519049bff1e38c310b662
Contents?: true
Size: 721 Bytes
Versions: 9
Compression:
Stored size: 721 Bytes
Contents
require 'spec_helper' describe Minimart::Output do let(:io) { StringIO.new } let(:output) { Minimart::Output.new(io) } subject { io.string } describe '#puts' do before(:each) { output.puts 'hello world' } it { is_expected.to include 'hello world' } end describe '#puts_red' do before(:each) { output.puts_red 'hello world' } it { is_expected.to include "\e[31mhello world\e[0m" } end describe '#puts_green' do before(:each) { output.puts_green 'hello world' } it { is_expected.to include "\e[32mhello world\e[0m" } end describe '#puts_yellow' do before(:each) { output.puts_yellow 'hello world' } it { is_expected.to include "\e[33mhello world\e[0m" } end end
Version data entries
9 entries across 9 versions & 1 rubygems