engine/spec/models/locomotive/extensions/site/subdomain_domains_spec.rb

26 lines
535 B
Ruby
Raw Normal View History

require 'spec_helper'
describe Locomotive::Extensions::Site::SubdomainDomains do
2012-04-19 22:31:48 +00:00
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
2012-04-19 22:31:48 +00:00
end