|
7 | 7 | # Loading more in this block will cause your tests to run faster. However, |
8 | 8 | # if you change any configuration or code from libraries loaded here, you'll |
9 | 9 | # need to restart spork for it take effect. |
10 | | -# This file is copied to spec/ when you run 'rails generate rspec:install' |
11 | | -ENV["RAILS_ENV"] ||= 'test' |
12 | | -require File.expand_path("../../config/environment", __FILE__) |
13 | | -require 'rspec/rails' |
14 | | -require 'rspec/autorun' |
15 | | - |
16 | | -# Requires supporting ruby files with custom matchers and macros, etc, |
17 | | -# in spec/support/ and its subdirectories. |
18 | | -Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} |
19 | | - |
20 | | -RSpec.configure do |config| |
21 | | - # ## Mock Framework |
22 | | - # |
23 | | - # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line: |
24 | | - # |
25 | | - # config.mock_with :mocha |
26 | | - # config.mock_with :flexmock |
27 | | - # config.mock_with :rr |
28 | | - config.mock_with :rspec |
29 | | - |
30 | | - # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures |
31 | | - config.fixture_path = "#{::Rails.root}/spec/fixtures" |
32 | | - |
33 | | - # If you're not using ActiveRecord, or you'd prefer not to run each of your |
34 | | - # examples within a transaction, remove the following line or assign false |
35 | | - # instead of true. |
36 | | - config.use_transactional_fixtures = true |
37 | | - |
38 | | - # If true, the base class of anonymous controllers will be inferred |
39 | | - # automatically. This will be the default behavior in future versions of |
40 | | - # rspec-rails. |
41 | | - config.infer_base_class_for_anonymous_controllers = false |
42 | | -end |
| 10 | + # This file is copied to spec/ when you run 'rails generate rspec:install' |
| 11 | + ENV["RAILS_ENV"] ||= 'test' |
| 12 | + require File.expand_path("../../config/environment", __FILE__) |
| 13 | + require 'rspec/rails' |
| 14 | + require 'rspec/autorun' |
| 15 | + |
| 16 | + # Requires supporting ruby files with custom matchers and macros, etc, |
| 17 | + # in spec/support/ and its subdirectories. |
| 18 | + Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} |
| 19 | + |
| 20 | + RSpec.configure do |config| |
| 21 | + # ## Mock Framework |
| 22 | + # |
| 23 | + # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line: |
| 24 | + # |
| 25 | + # config.mock_with :mocha |
| 26 | + # config.mock_with :flexmock |
| 27 | + # config.mock_with :rr |
| 28 | + config.mock_with :rspec |
| 29 | + |
| 30 | + # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures |
| 31 | + config.fixture_path = "#{::Rails.root}/spec/fixtures" |
| 32 | + |
| 33 | + # If you're not using ActiveRecord, or you'd prefer not to run each of your |
| 34 | + # examples within a transaction, remove the following line or assign false |
| 35 | + # instead of true. |
| 36 | + config.use_transactional_fixtures = true |
| 37 | + |
| 38 | + # If true, the base class of anonymous controllers will be inferred |
| 39 | + # automatically. This will be the default behavior in future versions of |
| 40 | + # rspec-rails. |
| 41 | + config.infer_base_class_for_anonymous_controllers = false |
| 42 | + end |
43 | 43 | end |
44 | 44 |
|
45 | 45 | Spork.each_run do |
|
0 commit comments