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
Copy file name to clipboardExpand all lines: README.adoc
+9-9
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ endif::[]
23
23
24
24
This RSpec style guide outlines the recommended best practices for real-world programmers to write code that can be maintained by other real-world programmers.
25
25
26
-
https://github.com/rubocop-hq/rubocop[RuboCop], a static code analyzer (linter) and formatter, has a https://github.com/rubocop-hq/rubocop-rspec[`rubocop-rspec`] extension, provides a way to enforce the rules outlined in this guide.
26
+
https://github.com/rubocop/rubocop[RuboCop], a static code analyzer (linter) and formatter, has a https://github.com/rubocop/rubocop-rspec[`rubocop-rspec`] extension, provides a way to enforce the rules outlined in this guide.
27
27
28
28
NOTE: This guide assumes you are using RSpec 3 or later.
29
29
@@ -971,7 +971,7 @@ end
971
971
Stub HTTP requests when the code is making them.
972
972
Avoid hitting real external services.
973
973
974
-
Use https://github.com/bblimke/webmock[webmock] and https://github.com/vcr/vcr[VCR] separately or http://marnen.github.com/webmock-presentation/webmock.html[together].
974
+
Use https://github.com/bblimke/webmock[webmock] and https://github.com/vcr/vcr[VCR] separately or https://marnen.github.io/webmock-presentation/webmock.html[together].
975
975
976
976
[source,ruby]
977
977
----
@@ -992,7 +992,7 @@ end
992
992
=== Declare Constants
993
993
994
994
Do not explicitly declare classes, modules, or constants in example groups.
NOTE: Constants, including classes and modules, when declared in a block scope, are defined in global namespace, and leak between examples.
998
998
@@ -1282,7 +1282,7 @@ end
1282
1282
1283
1283
=== Extract Common Expectation Parts into Matchers
1284
1284
1285
-
Extract frequently used common logic from your examples into https://relishapp.com/rspec/rspec-expectations/docs/custom-matchers/define-a-custom-matcher[custom matchers].
1285
+
Extract frequently used common logic from your examples into https://rspec.info/features/3-12/rspec-expectations/custom-matchers/define-matcher/[custom matchers].
1286
1286
1287
1287
[source,ruby]
1288
1288
----
@@ -1617,7 +1617,7 @@ end
1617
1617
1618
1618
=== Check Model Validity[[model-check-validity]]
1619
1619
1620
-
Add an example ensuring that the model created with ``FactoryBot.create`` is valid.
1620
+
Add an example ensuring that the model created with `FactoryBot.create` is valid.
1621
1621
1622
1622
[source,ruby]
1623
1623
----
@@ -1762,11 +1762,11 @@ You can also support the project (and RuboCop) with financial contributions via
1762
1762
1763
1763
It's easy, just follow the contribution guidelines below:
1764
1764
1765
-
* https://help.github.com/articles/fork-a-repo[Fork] the https://github.com/rubocop/rspec-style-guide[project] on GitHub
1765
+
* https://docs.github.com/en/get-started/quickstart/fork-a-repo[Fork] the https://github.com/rubocop/rspec-style-guide[project] on GitHub
1766
1766
* Make your feature addition or bug fix in a feature branch
1767
1767
* Include a http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html[good description] of your changes
1768
1768
* Push your feature branch to GitHub
1769
-
* Send a https://help.github.com/articles/using-pull-requests[Pull Request]
1769
+
* Send a https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests[Pull Request]
1770
1770
1771
1771
== License
1772
1772
@@ -1779,8 +1779,8 @@ Inspiration was taken from the following:
This guide was maintained by https://github.com/reachlocal[ReachLocal] for a long while.
1785
1785
1786
-
This guide includes material originally present in https://github.com/lelylan/betterspecs[BetterSpecs] (https://lelylan.github.io/betterspecs/[newer site] http://www.betterspecs.org/[older site]), sponsored by https://github.com/lelylan[Lelylan] and maintained by https://github.com/andreareginato[Andrea Reginato] and https://github.com/lelylan/betterspecs/graphs/contributors[many others] for a long while.
1786
+
This guide includes material originally present in https://github.com/betterspecs/betterspecs[BetterSpecs] (https://betterspecs.github.io/betterspecs/[newer site] https://www.betterspecs.org/[older site]), sponsored by https://github.com/lelylan[Lelylan] and maintained by https://github.com/andreareginato[Andrea Reginato] and https://github.com/betterspecs/betterspecs/graphs/contributors[many others] for a long while.
0 commit comments