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.3.5 test/units/models/test_address.rb
mls-0.3.4 test/units/models/test_address.rb
mls-0.3.3 test/units/models/test_address.rb
mls-0.3.2 test/units/models/test_address.rb
mls-0.3.1 test/units/models/test_address.rb
mls-0.3.0 test/units/models/test_address.rb
mls-0.2.54 test/units/models/test_address.rb
mls-0.2.53 test/units/models/test_address.rb
mls-0.2.52 test/units/models/test_address.rb
mls-0.2.51 test/units/models/test_address.rb
mls-0.2.50 test/units/models/test_address.rb
mls-0.2.49 test/units/models/test_address.rb
mls-0.2.48 test/units/models/test_address.rb
mls-0.2.47 test/units/models/test_address.rb
mls-0.2.46 test/units/models/test_address.rb
mls-0.2.45 test/units/models/test_address.rb
mls-0.2.44 test/units/models/test_address.rb
mls-0.2.43 test/units/models/test_address.rb
mls-0.2.42 test/units/models/test_address.rb
mls-0.2.41 test/units/models/test_address.rb