diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec_helper.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 35523ab..7a7f305 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,8 +1,13 @@ +ENV['RAILS_ENV'] ||= 'test' + require "bundler/setup" -require "super_good/solidus_taxjar" -# Load the dummy app: -require File.expand_path('../dummy/config/environment.rb', __FILE__) +begin + require File.expand_path('../dummy/config/environment', __FILE__) +rescue LoadError + puts 'Could not load dummy application. Please ensure you have run `bundle exec rake test_app`' + exit +end RSpec.configure do |config| config.expect_with :rspec do |c| |