Sha256: 7256b0510bf07df0a78537a87766c997dbe554c10d4eb24a1dd55b7beb899bcf

Contents?: true

Size: 581 Bytes

Versions: 1

Compression:

Stored size: 581 Bytes

Contents

RSpec.describe Gman::Locality do
  context 'valid domains' do
    ['foo.state.il.us', 'ci.foo.il.us'].each do |domain|
      context "the #{domain} domain" do
        it 'is valid' do
          expect(described_class.valid?(domain)).to eql(true)
        end
      end
    end
  end

  context 'invalid domains' do
    ['state.foo.il.us', 'foo.ci.il.us',
     'k12.il.us', 'ci.foo.zx.us'].each do |domain|
       context "the #{domain} domain" do
         it 'is invalid' do
           expect(described_class.valid?(domain)).to eql(false)
         end
       end
     end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gman-7.0.2 spec/gman/locality_spec.rb