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