Sha256: 282df62b70bff48aebf561102dc7e296556c0c27e96f3863857c46b2224304b1

Contents?: true

Size: 842 Bytes

Versions: 100

Compression:

Stored size: 842 Bytes

Contents

require 'test_helper'

class TestAddress < ::Test::Unit::TestCase

  def test_properties
    address = MLS::Address.new

    assert address.respond_to?(:id)
    assert address.respond_to?(:name)
    assert address.respond_to?(:slug)
    assert address.respond_to?(:latitude)
    assert address.respond_to?(:longitude)
    assert address.respond_to?(:formatted_address)
    assert address.respond_to?(:street_number)
    assert address.respond_to?(:street)
    assert address.respond_to?(:neighborhood)
    assert address.respond_to?(:city)
    assert address.respond_to?(:county)
    assert address.respond_to?(:state)
    assert address.respond_to?(:country)
    assert address.respond_to?(:postal_code)
  end

  def test_class_methods
    assert MLS::Address.respond_to?(:query)
    assert MLS::Address.respond_to?(:box_cluster)
  end

end

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
mls-0.2.17 test/units/models/test_address.rb
mls-0.2.16 test/units/models/test_address.rb
mls-0.2.15 test/units/models/test_address.rb
mls-0.2.14 test/units/models/test_address.rb
mls-0.2.13 test/units/models/test_address.rb
mls-0.2.12 test/units/models/test_address.rb
mls-0.2.11 test/units/models/test_address.rb
mls-0.2.9.1 test/units/models/test_address.rb
mls-0.2.10 test/units/models/test_address.rb
mls-0.2.9 test/units/models/test_address.rb
mls-0.2.8.2 test/units/models/test_address.rb
mls-0.2.8.1 test/units/models/test_address.rb
mls-0.2.8 test/units/models/test_address.rb
mls-0.2.7 test/units/models/test_address.rb
mls-0.2.6 test/units/models/test_address.rb
mls-0.2.5 test/units/models/test_address.rb
mls-0.2.4 test/units/models/test_address.rb
mls-0.2.3 test/units/models/test_address.rb
mls-0.2.2 test/units/models/test_address.rb
mls-0.2.1 test/units/models/test_address.rb