File tree 3 files changed +35
-0
lines changed 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ --require spec_helper
2
+ --format documentation
Original file line number Diff line number Diff line change
1
+ require 'spec_helper'
2
+ ENV [ 'RAILS_ENV' ] ||= 'test'
3
+ require File . expand_path ( '../../config/environment' , __FILE__ )
4
+ abort ( "The Rails environment is running in production mode!" ) if Rails . env . production?
5
+ require 'rspec/rails'
6
+
7
+ begin
8
+ ActiveRecord ::Migration . maintain_test_schema!
9
+ rescue ActiveRecord ::PendingMigrationError => e
10
+ puts e . to_s . strip
11
+ exit 1
12
+ end
13
+
14
+ RSpec . configure do |config |
15
+ config . fixture_path = "#{ ::Rails . root } /spec/fixtures"
16
+
17
+ config . use_transactional_fixtures = true
18
+
19
+ config . infer_spec_type_from_file_location!
20
+
21
+ config . filter_rails_from_backtrace!
22
+ end
Original file line number Diff line number Diff line change
1
+ RSpec . configure do |config |
2
+ config . expect_with :rspec do |expectations |
3
+ expectations . include_chain_clauses_in_custom_matcher_descriptions = true
4
+ end
5
+
6
+ config . mock_with :rspec do |mocks |
7
+ mocks . verify_partial_doubles = true
8
+ end
9
+
10
+ config . shared_context_metadata_behavior = :apply_to_host_groups
11
+ end
You can’t perform that action at this time.
0 commit comments