File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ class Application < ::Rails::Application
11
11
end
12
12
end
13
13
end
14
+
14
15
I18n . enforce_available_locales = true
15
16
16
17
require 'rspec/support/spec'
@@ -25,17 +26,34 @@ def self.run_all(reporter=nil)
25
26
end
26
27
end
27
28
29
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
28
30
RSpec . configure do |config |
31
+ config . expect_with :rspec do |expectations |
32
+ expectations . include_chain_clauses_in_custom_matcher_descriptions = true
33
+ end
34
+
35
+ config . mock_with :rspec do |mocks |
36
+ # mocks.verify_partial_doubles = true
37
+ mocks . verify_doubled_constant_names = true
38
+ end
39
+
29
40
config . filter_run :focus
30
41
config . run_all_when_everything_filtered = true
42
+
31
43
config . order = :random
44
+ Kernel . srand config . seed
45
+
46
+ config . shared_context_metadata_behavior = :apply_to_host_groups
47
+
48
+ config . disable_monkey_patching!
32
49
33
- real_world = nil
34
- config . before ( :each ) do
50
+ config . warnings = true
51
+ config . raise_on_warning = true
52
+
53
+ config . around ( :example ) do |example |
35
54
real_world = RSpec . world
36
55
RSpec . instance_variable_set ( :@world , RSpec ::Core ::World . new )
37
- end
38
- config . after ( :each ) do
56
+ example . run
39
57
RSpec . instance_variable_set ( :@world , real_world )
40
58
end
41
59
end
You can’t perform that action at this time.
0 commit comments