Skip to content

Commit ee86e91

Browse files
authored
Merge pull request #1644 from rubocop/fix-rspec-doc-links
Replace Relish RSpec links with rspec.info
2 parents 19fa0c0 + 7b2ce39 commit ee86e91

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

docs/modules/ROOT/pages/cops_rspec.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2879,7 +2879,7 @@ end
28792879

28802880
* https://rspec.rubystyle.guide/#declare-constants
28812881
* https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LeakyConstantDeclaration
2882-
* https://relishapp.com/rspec/rspec-mocks/docs/mutating-constants
2882+
* https://rspec.info/features/3-12/rspec-mocks/mutating-constants
28832883

28842884
== RSpec/LetBeforeExamples
28852885

@@ -5295,7 +5295,7 @@ end
52955295
=== References
52965296

52975297
* https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/VerifiedDoubleReference
5298-
* https://relishapp.com/rspec/rspec-mocks/docs/verifying-doubles
5298+
* https://rspec.info/features/3-12/rspec-mocks/verifying-doubles
52995299

53005300
== RSpec/VerifiedDoubles
53015301

@@ -5349,7 +5349,7 @@ end
53495349

53505350
* https://rspec.rubystyle.guide/#doubles
53515351
* https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/VerifiedDoubles
5352-
* https://relishapp.com/rspec/rspec-mocks/docs/verifying-doubles
5352+
* https://rspec.info/features/3-12/rspec-mocks/verifying-doubles
53535353

53545354
== RSpec/VoidExpect
53555355

docs/modules/ROOT/pages/index.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ over
3232
calculator.compute(line_item).should == 5
3333
----
3434

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 "Disable should syntax" section of https://rspec.info/features/3-12/rspec-expectations/syntax-configuration[RSpec Documentation].
3636

3737
=== Enforcing an explicit RSpec receiver for top-level methods (disabling monkey patching)
3838

@@ -54,6 +54,6 @@ describe MyClass do
5454
end
5555
----
5656

57-
can be achieved using RSpec's `disable_monkey_patching!` method, which you can read more about in the https://relishapp.com/rspec/rspec-core/v/3-7/docs/configuration/zero-monkey-patching-mode#monkey-patched-methods-are-undefined-with-%60disable-monkey-patching!%60[RSpec Documentation]. This will also prevent `should` from being defined on every object in your system.
57+
can be achieved using RSpec's `disable_monkey_patching!` method, which you can read more about in the https://rspec.info/features/3-12/rspec-core/configuration/zero-monkey-patching-mode[RSpec Documentation]. This will also prevent `should` from being defined on every object in your system.
5858

5959
Before disabling `should` you will need all your specs to use the `expect` syntax. You can use http://yujinakayama.me/transpec/[Transpec], which will do the conversion for you.

lib/rubocop/cop/rspec/leaky_constant_declaration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module RSpec
1717
# Anonymous classes are fine, since they don't result in global
1818
# namespace name clashes.
1919
#
20-
# @see https://relishapp.com/rspec/rspec-mocks/docs/mutating-constants
20+
# @see https://rspec.info/features/3-12/rspec-mocks/mutating-constants
2121
#
2222
# @example Constants leak between examples
2323
# # bad

lib/rubocop/cop/rspec/verified_double_reference.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module RSpec
77
#
88
# Only investigates references that are one of the supported styles.
99
#
10-
# @see https://relishapp.com/rspec/rspec-mocks/docs/verifying-doubles
10+
# @see https://rspec.info/features/3-12/rspec-mocks/verifying-doubles
1111
#
1212
# This cop can be configured in your configuration using the
1313
# `EnforcedStyle` option and supports `--auto-gen-config`.

lib/rubocop/cop/rspec/verified_doubles.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Cop
55
module RSpec
66
# Prefer using verifying doubles over normal doubles.
77
#
8-
# @see https://relishapp.com/rspec/rspec-mocks/docs/verifying-doubles
8+
# @see https://rspec.info/features/3-12/rspec-mocks/verifying-doubles
99
#
1010
# @example
1111
# # bad

0 commit comments

Comments
 (0)