spec/models/locomotive/site_spec.rb in locomotive_cms-2.5.5 vs spec/models/locomotive/site_spec.rb in locomotive_cms-2.5.6.rc1
- old
+ new
@@ -57,10 +57,10 @@
(site = FactoryGirl.build(:site, subdomain: 'foo', domains: %w{acme.example.com})).should_not be_valid
site.errors[:domains].should == ["acme.example.com is already taken"]
end
it 'should validate format of domains' do
- site = FactoryGirl.build(:site, domains: ['barformat.a', '-foo.net', 'goodformat.superlong'])
+ site = FactoryGirl.build(:site, domains: ['barformat.a', '-foo.net', 'goodformat.superlong', 'local.lb-service'])
site.should_not be_valid
site.errors[:domains].should == ['barformat.a is invalid', '-foo.net is invalid']
end
## Named scopes ##