Fix country init for Jenkins

This commit is contained in:
Rohan Mitchell
2013-10-23 10:41:50 +11:00
parent bd6997f345
commit 763dab9efc

View File

@@ -17,8 +17,8 @@ Spree.config do |config|
config.searcher_class = OpenFoodNetwork::Searcher
# 109 should be Australia. Hardcoded for CI (Jenkins), where countries are not pre-loaded.
config.default_country_id = Spree::Country.table_exists? && Spree::Country.find_by_name('Australia').andand.id
config.default_country_id ||= 109
config.default_country_id = Spree::Country.table_exists? && Spree::Country.find_by_name('Australia').andand.id
config.default_country_id = 109 unless config.default_country_id.present? && config.default_country_id > 0
# -- spree_paypal_express
# Auto-capture payments. Without this option, payments must be manually captured in the paypal interface.