Browse files

Removing unused features.

  • Loading branch information...
1 parent d9e337b commit 8fa3f3994f766b30fce76791f6e9e6407a476081 @waratuman waratuman committed Dec 18, 2012
Showing with 0 additions and 14 deletions.
  1. +0 −3 lib/mls/models/listing.rb
  2. +0 −1 test/factories/listing.rb
  3. +0 −10 test/units/models/test_listing.rb
View
3 lib/mls/models/listing.rb
@@ -37,8 +37,6 @@ class MLS::Listing < MLS::Resource
property :rate_per_year, Decimal, :serialize => :false
property :total_rate_per_month, Decimal, :serialize => :false
property :total_rate_per_year, Decimal, :serialize => :false
- property :tenant_improvements, String, :serialize => :if_present
- property :nnn_expenses, Decimal
property :sublease_expiration, DateTime
property :available_on, DateTime
@@ -48,7 +46,6 @@ class MLS::Listing < MLS::Resource
property :offices, Fixnum
property :conference_rooms, Fixnum
property :bathrooms, Fixnum
- property :desks, Fixnum
property :kitchen, Boolean
property :showers, Boolean
View
1 test/factories/listing.rb
@@ -21,7 +21,6 @@
#lease_type { ::MLS::Listing::LEASE_TYPES.sample }
space_type 'unit'
rate { rand(15..300) }
- nnn_expenses { |l| l.lease_type == 'NNN' ? Kernel.rand(15..200) : nil }
available_on { Time.now + (20 + rand(0..360).to_i).days }
sublease_expiration { |l| l.sublease? ? (l.available_on + (30 + Kernel.rand(10..360)).days) : nil }
name { |l| l.kind == 'coworking' ? Faker::Name.name : nil }
View
10 test/units/models/test_listing.rb
@@ -25,30 +25,20 @@ def test_properties
assert listing.respond_to?(:rate_units)
assert listing.respond_to?(:rate_per_month)
assert listing.respond_to?(:rate_per_year)
- assert listing.respond_to?(:tenant_improvements)
- assert listing.respond_to?(:nnn_expenses)
assert listing.respond_to?(:sublease_expiration)
assert listing.respond_to?(:available_on)
assert listing.respond_to?(:maximum_term_length)
assert listing.respond_to?(:minimum_term_length)
assert listing.respond_to?(:offices)
assert listing.respond_to?(:conference_rooms)
assert listing.respond_to?(:bathrooms)
- assert listing.respond_to?(:desks)
assert listing.respond_to?(:kitchen)
assert listing.respond_to?(:showers)
- assert listing.respond_to?(:bike_rack)
assert listing.respond_to?(:bikes_allowed)
- assert listing.respond_to?(:server_room)
assert listing.respond_to?(:reception_area)
- assert listing.respond_to?(:turnkey)
assert listing.respond_to?(:patio)
- assert listing.respond_to?(:copy_room)
assert listing.respond_to?(:dog_friendly)
- assert listing.respond_to?(:cabling)
assert listing.respond_to?(:ready_to_move_in)
- assert listing.respond_to?(:recent_space_improvements)
- assert listing.respond_to?(:printers)
assert listing.respond_to?(:furniture_available)
assert listing.respond_to?(:created_at)
assert listing.respond_to?(:updated_at)

0 comments on commit 8fa3f39

Please sign in to comment.