Fix travis fails - set deployment before requiring gems, race condition in distributor info spec

This commit is contained in:
Rohan Mitchell
2013-06-07 17:08:55 +10:00
parent cbeffaced1
commit 71ee764d65
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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__)