Guest User

Untitled

a guest
Nov 18th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. # Configure Rails Envinronment
  2. ENV["RAILS_ENV"] = "test"
  3. require File.expand_path("../dummy/config/environment.rb", __FILE__)
  4.  
  5. require 'rspec/rails'
  6.  
  7. ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
  8.  
  9. # Requires supporting ruby files with custom matchers and macros, etc,
  10. # in spec/support/ and its subdirectories.
  11. Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
  12.  
  13. RSpec.configure do |config|
  14. config.use_transactional_fixtures = true
  15. end
Add Comment
Please, Sign In to add comment