lib/lotus/generators/application/container/spec_helper.rb.rspec.tt in lotusrb-0.3.1 vs lib/lotus/generators/application/container/spec_helper.rb.rspec.tt in lotusrb-0.3.2
- old
+ new
@@ -1,9 +1,10 @@
# Require this file for unit tests
ENV['LOTUS_ENV'] ||= 'test'
require_relative '../config/environment'
+Lotus::Application.preload!
Dir[__dir__ + '/support/**/*.rb'].each { |f| require f }
# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
@@ -22,12 +23,9 @@
# The `.rspec` file also contains a few flags that are not defaults but that
# users commonly want.
#
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
- # Preload application for testing in isolation components
- config.before(:suite) { Lotus::Application.preload! }
-
# rspec-expectations config goes here. You can use an alternate
# assertion/expectation library such as wrong or the stdlib/minitest
# assertions if you prefer.
config.expect_with :rspec do |expectations|
# This option will default to `true` in RSpec 4. It makes the `description`