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.9.9 test/units/models/test_address.rb
mls-0.9.8 test/units/models/test_address.rb
mls-0.9.6 test/units/models/test_address.rb
mls-0.9.5 test/units/models/test_address.rb
mls-0.9.4 test/units/models/test_address.rb
mls-0.9.3 test/units/models/test_address.rb
mls-0.9.2 test/units/models/test_address.rb
mls-0.9.1 test/units/models/test_address.rb
mls-0.9.0 test/units/models/test_address.rb
mls-0.8.2 test/units/models/test_address.rb
mls-0.8.1 test/units/models/test_address.rb
mls-0.8.0 test/units/models/test_address.rb
mls-0.7.2 test/units/models/test_address.rb
mls-0.7.1 test/units/models/test_address.rb
mls-0.7.0 test/units/models/test_address.rb
mls-0.6.7 test/units/models/test_address.rb
mls-0.6.6 test/units/models/test_address.rb
mls-0.6.5 test/units/models/test_address.rb
mls-0.6.4 test/units/models/test_address.rb
mls-0.6.3 test/units/models/test_address.rb