Commit 145c6f161758fceb1b7da72457231fcaa37c255a
1 parent
e57979da
Exists in
master
and in
21 other branches
Destroy all stores between tests
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
test/test_helper.rb
... | ... | @@ -126,7 +126,7 @@ class Product |
126 | 126 | attr_accessor :conversions, :user_ids |
127 | 127 | |
128 | 128 | def search_data |
129 | - serializable_hash.merge conversions: conversions, user_ids: user_ids, location: [latitude, longitude], multiple_locations: [[latitude, longitude], [0, 0]] | |
129 | + serializable_hash.except("id").merge conversions: conversions, user_ids: user_ids, location: [latitude, longitude], multiple_locations: [[latitude, longitude], [0, 0]] | |
130 | 130 | end |
131 | 131 | |
132 | 132 | def should_index? |
... | ... | @@ -159,6 +159,7 @@ class Minitest::Unit::TestCase |
159 | 159 | |
160 | 160 | def setup |
161 | 161 | Product.destroy_all |
162 | + Store.destroy_all | |
162 | 163 | Animal.destroy_all |
163 | 164 | end |
164 | 165 | ... | ... |