Sha256: b26cc9885a41e463f2efb82798b6c6bbc016a498ba14a555dd614625218bf03e

Contents?: true

Size: 604 Bytes

Versions: 54

Compression:

Stored size: 604 Bytes

Contents

require 'spec_helper'

describe Locomotive::Steam::Configuration do

  subject { Locomotive::Steam::Configuration.new }

  describe 'default values' do

    it { expect(subject.mode).to eq(:production) }
    it { expect(subject.serve_assets).to eq(true) }
    it { expect(subject.asset_path).to eq(nil) }

  end

  describe 'assign a different value' do

    before { subject.mode = :test }
    it { expect(subject.mode).to eq(:test) }

    context 'the initial value was true' do

      before { subject.serve_assets = false }
      it { expect(subject.serve_assets).to eq(false) }

    end

  end

end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
locomotivecms_steam-1.8.0.alpha2 spec/unit/configuration_spec.rb
locomotivecms_steam-1.8.0.alpha1 spec/unit/configuration_spec.rb
locomotivecms_steam-1.7.1 spec/unit/configuration_spec.rb
locomotivecms_steam-1.7.0 spec/unit/configuration_spec.rb
locomotivecms_steam-1.6.1 spec/unit/configuration_spec.rb
locomotivecms_steam-1.6.0 spec/unit/configuration_spec.rb
locomotivecms_steam-1.6.0.rc1 spec/unit/configuration_spec.rb
locomotivecms_steam-1.6.0.beta1 spec/unit/configuration_spec.rb
locomotivecms_steam-1.5.3 spec/unit/configuration_spec.rb
locomotivecms_steam-1.5.2 spec/unit/configuration_spec.rb
locomotivecms_steam-1.5.1 spec/unit/configuration_spec.rb
locomotivecms_steam-1.5.0 spec/unit/configuration_spec.rb
locomotivecms_steam-1.5.0.rc1 spec/unit/configuration_spec.rb
locomotivecms_steam-1.5.0.rc0 spec/unit/configuration_spec.rb
locomotivecms_steam-1.5.0.beta3 spec/unit/configuration_spec.rb
locomotivecms_steam-1.5.0.beta2 spec/unit/configuration_spec.rb
locomotivecms_steam-1.5.0.beta1 spec/unit/configuration_spec.rb
locomotivecms_steam-1.4.1 spec/unit/configuration_spec.rb
locomotivecms_steam-1.4.0 spec/unit/configuration_spec.rb
locomotivecms_steam-1.4.0.rc2 spec/unit/configuration_spec.rb