Sha256: 31a7b4c2ba6d1ec6dc5ab0b748d63055cc93b0b000117620f219c8962145698e
Contents?: true
Size: 684 Bytes
Versions: 8
Compression:
Stored size: 684 Bytes
Contents
require 'spec_helper' describe 'Infobar config' do before do ComplexConfig::Provider.config_dir = Pathname.new(__FILE__).dirname.dirname + 'config' extend ComplexConfig::Provider::Shortcuts ComplexConfig::Provider.reload end after do ComplexConfig::Provider.config_dir = nil ComplexConfig::Provider.reload end it 'configuration exists' do expect(cc.infobar?).not_to be_nil end it 'configures default infobar' do Infobar(total: 23) expect(infobar.display.output).to receive(:<<).with(?\r) expect(infobar.display.output).to receive(:<<).with(%r(Progress 0/23.*⣽)) infobar.update expect(infobar).to be_show end end
Version data entries
8 entries across 8 versions & 1 rubygems