test/factories/listing.rb in mls-0.2.10 vs test/factories/listing.rb in mls-0.2.11
- old
+ new
@@ -16,10 +16,10 @@
use 'Office'
total_size { Kernel.rand(3000..900000) }
maximum_contiguous_size { Kernel.rand(3000..900000) }
minimum_divisable_size { Kernel.rand(3000..900000) }
kind 'lease'
- #lease_type { ::MLS::Listing::LEASE_TYPES.sample }
+ #lease_terms { ::MLS::Listing::LEASE_TERMS.sample }
space_type 'unit'
rate { rand(15..300) }
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 }