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.40 test/units/models/test_address.rb
mls-0.2.39 test/units/models/test_address.rb
mls-0.2.38 test/units/models/test_address.rb
mls-0.2.37 test/units/models/test_address.rb
mls-0.2.36 test/units/models/test_address.rb
mls-0.2.35 test/units/models/test_address.rb
mls-0.2.34 test/units/models/test_address.rb
mls-0.2.33 test/units/models/test_address.rb
mls-0.2.32 test/units/models/test_address.rb
mls-0.2.31 test/units/models/test_address.rb
mls-0.2.29 test/units/models/test_address.rb
mls-0.2.28 test/units/models/test_address.rb
mls-0.2.26 test/units/models/test_address.rb
mls-0.2.25 test/units/models/test_address.rb
mls-0.2.24 test/units/models/test_address.rb
mls-0.2.23 test/units/models/test_address.rb
mls-0.2.21 test/units/models/test_address.rb
mls-0.2.20 test/units/models/test_address.rb
mls-0.2.19 test/units/models/test_address.rb
mls-0.2.18 test/units/models/test_address.rb