engine/spec/lib/locomotive/configuration_spec.rb
2011-07-09 00:47:05 +02:00

19 lines
506 B
Ruby

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
after(:each) do
Locomotive.config = @old_config
end
end