Sha256: 87f99051a5c3058558427f1a7df1649e4f314cdf6de2766a0b76f19cdfc7f309

Contents?: true

Size: 1.65 KB

Versions: 2

Compression:

Stored size: 1.65 KB

Contents

require 'test_helper'

class TestAccount < ::Test::Unit::TestCase

  def test_properties
    account = MLS::Account.new

    assert account.respond_to?(:id)
    assert account.respond_to?(:role)
    assert account.respond_to?(:name)
    assert account.respond_to?(:email)
    assert account.respond_to?(:password)
    assert account.respond_to?(:password_confirmation)
    assert account.respond_to?(:perishable_token)
    assert account.respond_to?(:perishable_token_set_at)
    assert account.respond_to?(:phone)
    assert account.respond_to?(:company)
    assert account.respond_to?(:license)
    assert account.respond_to?(:linkedin)
    assert account.respond_to?(:twitter)
    assert account.respond_to?(:facebook)
    assert account.respond_to?(:web)
    assert account.respond_to?(:mls_number)
    assert account.respond_to?(:state)
    assert account.respond_to?(:country)
    assert account.respond_to?(:auth_key)
    assert account.respond_to?(:funding)
    assert account.respond_to?(:message)
    assert account.respond_to?(:population)
    assert account.respond_to?(:growing)
    assert account.respond_to?(:move_in)
    assert account.respond_to?(:extra_info)
  end

  def test_methods
    account = MLS::Account.new

    assert account.respond_to?(:update!)
    assert account.respond_to?(:create!)
    assert account.respond_to?(:agent?)
    assert account.respond_to?(:favorites)
    assert account.respond_to?(:favorite)
  end

  def test_class_methods
    assert MLS::Account.respond_to?(:current)
    assert MLS::Account.respond_to?(:authenticate)
    assert MLS::Account.respond_to?(:reset_password!)
    assert MLS::Account.respond_to?(:update_password!)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mls-0.2.2 test/units/models/test_account.rb
mls-0.2.1 test/units/models/test_account.rb