Sha256: 25da6f5f1f3c0962ba64877f1e3f45dbd5ee2d7b8108cf4d0d72b5c39b004665
Contents?: true
Size: 516 Bytes
Versions: 22
Compression:
Stored size: 516 Bytes
Contents
require 'spec_helper' describe SCSSLint::Logger do let(:io) { StringIO.new } let(:logger) { described_class.new(io) } describe '#color_enabled' do subject { io.string } before do logger.color_enabled = enabled logger.success('Success!') end context 'when color is enabled' do let(:enabled) { true } it { should include '32' } end context 'when color is disabled' do let(:enabled) { false } it { should_not include '32' } end end end
Version data entries
22 entries across 22 versions & 1 rubygems