mls 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mls/models/listing.rb +1 -0
- data/mls.gemspec +1 -1
- data/test/units/models/test_listing.rb +12 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff09dafc90a6ff857a40f593ba4f0c978c36bb31
|
4
|
+
data.tar.gz: ff991984c50826e07e700a37b67466632fc8be18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fac30e5dbb965e6f5de1db007f22c4121b0b08a1385bb61ad63510acd7b23840c25379d40f01f464162b119471f5654253d577b25936d75fb1cddf6b1e3c89b4
|
7
|
+
data.tar.gz: 26ab3dcd0c351b104d55a887b78f1792b5cabe8a7d4b9f366f1db72f3227b620aad003d4e5ffd0f6a3aff3183c599fa0e1283043635dd66a2436c5f62d82db6b
|
data/lib/mls/models/listing.rb
CHANGED
data/mls.gemspec
CHANGED
@@ -257,5 +257,17 @@ class TestListing < ::Test::Unit::TestCase
|
|
257
257
|
assert_equal 235, listing.rate('/yr')
|
258
258
|
assert_equal 783.33, listing.rate('/desk/mo')
|
259
259
|
end
|
260
|
+
|
261
|
+
def test_null_rate
|
262
|
+
listing = MLS::Listing.new(:rate => nil, :rate_units => '/yr', :size => 5)
|
263
|
+
|
264
|
+
assert_equal nil, listing.rate
|
265
|
+
assert_equal nil, listing.rate('/sqft/mo')
|
266
|
+
assert_equal nil, listing.rate('/sqft/yr')
|
267
|
+
assert_equal nil, listing.rate('/mo')
|
268
|
+
assert_equal nil, listing.rate('/yr')
|
269
|
+
assert_equal nil, listing.rate('/desk/mo')
|
270
|
+
assert_equal nil, listing.rate('/random')
|
271
|
+
end
|
260
272
|
|
261
273
|
end
|