Sha256: ee883ed8797fc045e197655dff8d238959617e7a8dac08a292ea9a14323b520c

Contents?: true

Size: 720 Bytes

Versions: 2

Compression:

Stored size: 720 Bytes

Contents

require 'spec_helper'

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
      Dashing.stub(:config).and_return(:configuration)
    end

    it 'yields configuration' do
      Dashing.should_receive(:configure).and_yield(configuration)
      Dashing.configure {|config|}
    end

  end

  describe '.first_dashboard' do

    let(:dir) { 'foo' }
    let(:dirs) { [dir] }

    before do
      Dir.stub(:[]).and_return(dirs)
    end

    it { expect(Dashing.first_dashboard).to eq(dir) }

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dashing-rails-1.0.1 spec/lib/dashing_spec.rb
dashing-rails-1.0.0 spec/lib/dashing_spec.rb