Sha256: c8f4bb8b43e46e089efcc65c95d8c2b8be7170e2c876632d785967a3be09194c

Contents?: true

Size: 564 Bytes

Versions: 8

Compression:

Stored size: 564 Bytes

Contents

require 'spec_helper'

describe Ratis::LocationTypeAheadItem do
  let(:item) {
    Ratis::LocationTypeAheadItem.new({
      name: '1315 W STRAFORD DR',
      area: 'Chandler',
      areacode: 'CH',
      postcode: '85224',
      type: 'N'
    })
  }

  describe '#initialize' do
    it "should correctly assign instance variables" do
      expect(item.name).to eq('1315 W STRAFORD DR')
      expect(item.area).to eq('Chandler')
      expect(item.areacode).to eq('CH')
      expect(item.postcode).to eq('85224')
      expect(item.type).to eq('N')
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ratis-3.6.6 spec/ratis/location_type_ahead_item_spec.rb
ratis-3.6.5 spec/ratis/location_type_ahead_item_spec.rb
ratis-3.6.4 spec/ratis/location_type_ahead_item_spec.rb
ratis-3.6.3 spec/ratis/location_type_ahead_item_spec.rb
ratis-3.6.2 spec/ratis/location_type_ahead_item_spec.rb
ratis-3.6.1 spec/ratis/location_type_ahead_item_spec.rb
ratis-3.6.0 spec/ratis/location_type_ahead_item_spec.rb
ratis-3.5.0 spec/ratis/location_type_ahead_item_spec.rb