main
1# This file is copied to spec/ when you run 'rails generate rspec:install'
2ENV["RAILS_ENV"] ||= 'test'
3require File.expand_path("../../config/environment", __FILE__)
4require 'rspec/rails'
5require 'rspec/autorun'
6
7# Requires supporting ruby files with custom matchers and macros, etc,
8# in spec/support/ and its subdirectories.
9Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
10
11RSpec.configure do |config|
12 # ## Mock Framework
13 #
14 # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
15 #
16 # config.mock_with :mocha
17 # config.mock_with :flexmock
18 # config.mock_with :rr
19
20 # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
21 config.fixture_path = "#{::Rails.root}/spec/fixtures"
22
23 # If you're not using ActiveRecord, or you'd prefer not to run each of your
24 # examples within a transaction, remove the following line or assign false
25 # instead of true.
26 config.use_transactional_fixtures = true
27
28 # If true, the base class of anonymous controllers will be inferred
29 # automatically. This will be the default behavior in future versions of
30 # rspec-rails.
31 config.infer_base_class_for_anonymous_controllers = false
32
33 # Run specs in random order to surface order dependencies. If you find an
34 # order dependency and want to debug it, you can fix the order by providing
35 # the seed, which is printed after each run.
36 # --seed 1234
37 config.order = "random"
38end