Commit 2b7a67f993a4ae381c2ade3839d402db1bbcb12f
1 parent
5efe2b44
Exists in
master
and in
29 other branches
ActionItem1178: fixed bug in Product
It was not properly saving product latitude and longitude.
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
app/models/product.rb
test/unit/product_test.rb
... | ... | @@ -82,6 +82,7 @@ class ProductTest < Test::Unit::TestCase |
82 | 82 | ent = Enterprise.create!(:name => 'test enterprise', :identifier => 'test_enterprise', :lat => 30.0, :lng => 30.0 ) |
83 | 83 | prod = ent.products.create!(:name => 'test product') |
84 | 84 | |
85 | + prod = Product.find(prod.id) | |
85 | 86 | assert_equal ent.lat, prod.lat |
86 | 87 | assert_equal ent.lng, prod.lng |
87 | 88 | end | ... | ... |