diff --git a/spec/support/seeds.rb b/spec/support/seeds.rb index 7b098401a2..8321705e3d 100644 --- a/spec/support/seeds.rb +++ b/spec/support/seeds.rb @@ -7,7 +7,7 @@ # leaves them there when deleting the rest (see spec/spec_helper.rb). # You can add more entries here if you need them for your tests. -if Spree::Country.where(nil).empty? +if Spree::Country.where(name: "Australia").empty? Spree::Country.create!({ "name" => "Australia", "iso3" => "AUS", "iso" => "AU", "iso_name" => "AUSTRALIA", "numcode" => "36" }) country = Spree::Country.find_by(name: 'Australia')