Sha256: dde3ebc699ea76ee460da146ec906300c22d7bbf467c1ef6d46fe738e01f4376
Contents?: true
Size: 885 Bytes
Versions: 3
Compression:
Stored size: 885 Bytes
Contents
RSpec.describe Dashing do it { expect(Dashing).to respond_to :configuration } describe '.config' do it { expect(Dashing.config).to be_a(Dashing::Configuration) } end describe '.configure' do let(:configuration) { Dashing::Configuration.new } before do allow(Dashing).to receive(:config).and_return(:configuration) end context 'when block given' do it 'yields configuration' do expect(Dashing).to receive(:configure).and_yield(configuration) Dashing.configure {|config|} end end context 'when no block given' do it { expect(Dashing.configure).to be_nil } end end describe '.first_dashboard' do let(:dir) { 'foo' } let(:dirs) { [dir] } before do allow(Dir).to receive(:[]).and_return(dirs) end it { expect(Dashing.first_dashboard).to eq(dir) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dashing-rails-2.6.2 | spec/lib/dashing_spec.rb |
dashing-rails-2.6.1 | spec/lib/dashing_spec.rb |
dashing-rails-2.6.0 | spec/lib/dashing_spec.rb |