Sha256: e5f7d496befc3bddd7839f84bd84af8d0b88492410e18f739777112de45397b0

Contents?: true

Size: 551 Bytes

Versions: 12

Compression:

Stored size: 551 Bytes

Contents

require 'test_helper'

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

  def test_attributes
    address = MLS::Address.new

    attributes = [:id, :name, :slug, :latitude, :longitude, :formated_address, :streetnumber, :street, :neighbrhood, :city, :county, :state, :countr, :postalcode]

    attributes.each do |attribute|
      assert address.respond_to?(attribute), "address should respond to #{attribute}"
    end
  end

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

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mls-1.1.3 test/units/models/test_address.rb
mls-1.1.2 test/units/models/test_address.rb
mls-1.1.1 test/units/models/test_address.rb
mls-1.1.0 test/units/models/test_address.rb
mls-1.0.0 test/units/models/test_address.rb
mls-0.14.0 test/units/models/test_address.rb
mls-0.13.0 test/units/models/test_address.rb
mls-0.12.5 test/units/models/test_address.rb
mls-0.12.4 test/units/models/test_address.rb
mls-0.12.2 test/units/models/test_address.rb
mls-0.12.3 test/units/models/test_address.rb
mls-0.12.1 test/units/models/test_address.rb