Commit 145c6f161758fceb1b7da72457231fcaa37c255a

Authored by Andrew Kane
1 parent e57979da

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,7 +126,7 @@ class Product
126 attr_accessor :conversions, :user_ids 126 attr_accessor :conversions, :user_ids
127 127
128 def search_data 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 end 130 end
131 131
132 def should_index? 132 def should_index?
@@ -159,6 +159,7 @@ class Minitest::Unit::TestCase @@ -159,6 +159,7 @@ class Minitest::Unit::TestCase
159 159
160 def setup 160 def setup
161 Product.destroy_all 161 Product.destroy_all
  162 + Store.destroy_all
162 Animal.destroy_all 163 Animal.destroy_all
163 end 164 end
164 165