You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RuboCop RSpec follows the https://docs.rubocop.org/rubocop/versioning.html[RuboCop versioning guide].
7
7
In a nutshell, between major versions new cops are introduced in a special `pending` status.
8
-
That means that they won’t be run unless explicitly told otherwise.
8
+
That means that they won't be run unless explicitly told otherwise.
9
9
RuboCop will warn on start that certain cops are neither explicitly enabled and disabled.
10
10
On a major version release, all `pending` cops are enabled.
11
11
@@ -32,7 +32,7 @@ over
32
32
calculator.compute(line_item).should == 5
33
33
----
34
34
35
-
is a feature of RSpec itself – you can read about it in the https://relishapp.com/rspec/rspec-expectations/docs/syntax-configuration#disable-should-syntax[RSpec Documentation].
35
+
is a feature of RSpec itself - you can read about it in the https://relishapp.com/rspec/rspec-expectations/docs/syntax-configuration#disable-should-syntax[RSpec Documentation].
36
36
37
37
=== Enforcing an explicit RSpec receiver for top-level methods (disabling monkey patching)
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/third_party_rspec_syntax_extensions.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,6 @@ Please check with the xref:usage.adoc#rspec-dsl-configuration[RSpec DSL configur
23
23
inherit_gem:
24
24
third-party-gem: .rubocop_rspec_alias_config.yml
25
25
26
-
3. Include the configuration file to their package by updating their `gemspec`’s `spec.files` to include the aforementioned configuration file.
26
+
3. Include the configuration file to their package by updating their `gemspec`'s `spec.files` to include the aforementioned configuration file.
27
27
28
28
See pull requests: https://github.com/test-prof/test-prof/pull/199[test-prof], and https://github.com/palkan/action_policy/pull/138[action_policy] for a less trivial example.
`TopLevelDescribe` was incomplete, had poor performance and did not distinguish between example groups and shared example groups.
139
139
140
140
`TopLevelGroup` provides a similar interface, but instead of a single `on_top_level_describe` hook there are two, `on_top_level_example_group` and `on_top_level_group`.
141
-
There’s no need yet for `on_top_level_shared_group` for RuboCop core cops, but if your custom cop needs such a hook, please feel free to send a pull request.
141
+
There's no need yet for `on_top_level_shared_group` for RuboCop core cops, but if your custom cop needs such a hook, please feel free to send a pull request.
142
142
143
143
Additionally, `single_top_level_describe?` is removed with no direct replacement.
144
144
You may use `top_level_groups` query method instead, e.g. `top_level_groups.one?`.
0 commit comments