engine/spec/models/locomotive/extensions/site/subdomain_domains_spec.rb
Didier Lafforgue 486c6a12a2 fix issue #367
2012-04-20 00:31:48 +02:00

26 lines
535 B
Ruby

require 'spec_helper'
describe Locomotive::Extensions::Site::SubdomainDomains do
describe '#subdomain=' do
let(:site) { Locomotive::Site.new }
it 'downcases the subdomain' do
site.subdomain = 'MiXeDCaSe'
site.subdomain.should == 'mixedcase'
end
end
describe '#domains=' do
let(:site) { Locomotive::Site.new }
it 'downcases the domains' do
site.domains = ['FIRST.com', 'second.com', 'THIRD.com']
site.domains.should == ['first.com', 'second.com', 'third.com']
end
end
end