Sha256: 9f5cdb969b9ed68470772818aa81c175a5a124546794b858da926c1afa886d3b

Contents?: true

Size: 612 Bytes

Versions: 1

Compression:

Stored size: 612 Bytes

Contents

# frozen_string_literal: true

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.3 spec/gman/locality_spec.rb