File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,26 @@ bundle binstubs rspec-core
62
62
For detailed information on the RSpec 3.x upgrade process see the
63
63
[ RSpec Upgrade docs] ( https://relishapp.com/rspec/docs/upgrade ) .
64
64
65
- There is another ` rspec-rails ` specific change to be aware of:
65
+ There are two particular ` rspec-rails ` specific changes to be aware of:
66
+
67
+ > File-type inference disabled by default
68
+
69
+ Previously we automatically inferred spec type from a file location, this
70
+ was a surprising behaviour for new users and undesirable for some veteran users
71
+ so from RSpec 3 onwards this behaviour must be explicitly opted into with:
72
+
73
+ ``` Ruby
74
+ RSpec .configure do |config |
75
+ config.infer_spec_type_from_file_location!
76
+ end
77
+ ```
78
+
79
+ This change was made to accomplish our general goals of acting with the principle
80
+ of least surprise and removing magic from RSpec. See [ the directory structure
81
+ documentation] ( https://www.relishapp.com/rspec/rspec-rails/v/3-0/docs/directory-structure )
82
+ for more details.
83
+
84
+ The other ` rspec-rails ` specific change is:
66
85
67
86
> The default helper files created in RSpec 3.x have changed
68
87
You can’t perform that action at this time.
0 commit comments