mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix travis fails - set deployment before requiring gems, race condition in distributor info spec
This commit is contained in:
@@ -73,6 +73,7 @@ feature "enterprises distributor info as rich text" do
|
||||
|
||||
# -- Purchase email
|
||||
complete_purchase_from_checkout_address_page
|
||||
sleep 2 # The default timeout for wait_until is not always enough here
|
||||
wait_until { ActionMailer::Base.deliveries.length == 1 }
|
||||
ActionMailer::Base.deliveries.length.should == 1
|
||||
email = ActionMailer::Base.deliveries.last
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
require 'simplecov'
|
||||
SimpleCov.start
|
||||
|
||||
require 'rubygems'
|
||||
|
||||
# By default, test on eaterprises deployment settings
|
||||
# This must be set before rails loads so that it's available in engine initializers
|
||||
ENV['OFW_DEPLOYMENT'] ||= 'eaterprises'
|
||||
|
||||
require 'rubygems'
|
||||
|
||||
ENV["RAILS_ENV"] = 'test'
|
||||
require File.expand_path("../../config/environment", __FILE__)
|
||||
|
||||
Reference in New Issue
Block a user