Sha256: b311b46212a452c0e5b3613de74b0a9fd6addb8baad1dbca40b8907a37216221

Contents?: true

Size: 550 Bytes

Versions: 6

Compression:

Stored size: 550 Bytes

Contents

require 'spec_helper'

describe Hood, type: :model do
  it 'should create a nation' do
    expect { Hood.make! }.not_to raise_error
  end

  it 'should belong to city' do
    expect(Hood.make(city: nil)).to_not be_valid
  end

  it 'should not  to city' do
    expect(Hood.make(city: nil)).to_not be_valid
  end

  it 'should accept area phone code modified regex' do
    expect(Hood.make(phone: '115555XXXX')).to be_valid
  end

  it 'should accept area postal code modified regex' do
    expect(Hood.make(postal: '15123123')).to be_valid
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
geopolitical-1.0.2 spec/models/hood_spec.rb
geopolitical-1.0.0 spec/models/hood_spec.rb
geopolitical-0.9.9 spec/models/hood_spec.rb
geopolitical-0.9.7 spec/models/hood_spec.rb
geopolitical-0.9.5 spec/models/hood_spec.rb
geopolitical-0.9.3 spec/models/hood_spec.rb