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

Version Path
scss_lint-0.60.0 spec/scss_lint/logger_spec.rb
scss_lint-0.59.0 spec/scss_lint/logger_spec.rb
scss_lint-0.58.0 spec/scss_lint/logger_spec.rb
scss_lint-0.57.1 spec/scss_lint/logger_spec.rb
scss_lint-0.57.0 spec/scss_lint/logger_spec.rb
scss_lint-0.56.0 spec/scss_lint/logger_spec.rb
scss_lint-0.55.0 spec/scss_lint/logger_spec.rb
scss_lint-0.54.0 spec/scss_lint/logger_spec.rb
scss_lint-0.53.0 spec/scss_lint/logger_spec.rb
scss_lint-0.52.0 spec/scss_lint/logger_spec.rb
scss_lint-0.51.0 spec/scss_lint/logger_spec.rb
scss_lint-0.50.3 spec/scss_lint/logger_spec.rb
scss_lint-0.50.2 spec/scss_lint/logger_spec.rb
scss_lint-0.50.1 spec/scss_lint/logger_spec.rb
scss_lint-0.50.0 spec/scss_lint/logger_spec.rb
scss_lint-0.49.0 spec/scss_lint/logger_spec.rb
scss_lint-0.48.0 spec/scss_lint/logger_spec.rb
scss_lint-0.47.1 spec/scss_lint/logger_spec.rb
scss_lint-0.47.0 spec/scss_lint/logger_spec.rb
scss_lint-0.46.0 spec/scss_lint/logger_spec.rb