Sha256: bf00c2510b185013b10ddef6d6d5e59ca935f6dc195121a1865a3249d2debd99

Contents?: true

Size: 732 Bytes

Versions: 26

Compression:

Stored size: 732 Bytes

Contents

require 'spec_helper'

describe Locomotive::Configuration do

  before(:each) do
    @old_config = Locomotive.config.dup
  end

  it 'allows a different value for the reserved subdomains' do
    Locomotive.config.reserved_subdomains.include?('www').should be_true # by default
    Locomotive.config.multi_sites { |multi_sites| multi_sites.reserved_subdomains = %w(empty) }
    Locomotive.config.reserved_subdomains.should == ['empty']
  end

  it 'calls the hosting enabler if provided' do
    Rails.env.stubs(:test?).returns(false)
    Locomotive.expects(:enable_bushido).once
    Locomotive.config.hosting = { target: :bushido }
    Locomotive.enable_hosting
  end

  after(:each) do
    Locomotive.config = @old_config
  end

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
locomotive_cms-2.5.7 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.5.6 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.5.6.rc2 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.5.6.rc1 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.5.5 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.5.4 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.5.3 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.5.2 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.5.1 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.5.0 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.5.0.rc3 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.5.0.rc2 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.5.0.rc1 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.4.1 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.4.0 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.3.1 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.3.0 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.2.3 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.2.2 spec/lib/locomotive/configuration_spec.rb
locomotive_cms-2.2.1 spec/lib/locomotive/configuration_spec.rb