Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c99383

Browse files
authored
Merge pull request #19 from oieioi/fix-link
Fix official rspec documentation links
2 parents 72ad7aa + 0786525 commit 8c99383

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ end
795795

796796
## allow_any_instance_ofを避ける
797797

798-
[公式のドキュメント](https://relishapp.com/rspec/rspec-mocks/docs/working-with-legacy-code/any-instance)にも書かれているが、`allow_any_instance_of`(`expect_any_instance_of`)が必要な時点でテスト対象の設計がおかしい可能性がある。
798+
[公式のドキュメント](https://rspec.info/features/3-12/rspec-mocks/working-with-legacy-code/any-instance/)にも書かれているが、`allow_any_instance_of`(`expect_any_instance_of`)が必要な時点でテスト対象の設計がおかしい可能性がある。
799799

800800
例として、次のような`Statement#issue`のテストを書いてみる。
801801

README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ When `is_expected` isn't being used, it's good forget using `subject` and just w
730730

731731
## Avoid using `allow_any_instance_of`
732732

733-
It's also written in the [official documentation](https://relishapp.com/rspec/rspec-mocks/docs/working-with-legacy-code/any-instance), but there is a chance that the test's target design will bug out when using `allow_any_instance_of` (`expect_any_instance_of`).
733+
It's also written in the [official documentation](https://rspec.info/features/3-12/rspec-mocks/working-with-legacy-code/any-instance/), but there is a chance that the test's target design will bug out when using `allow_any_instance_of` (`expect_any_instance_of`).
734734

735735
As an example, Let's write a test for `Statement#issue`
736736

0 commit comments

Comments
 (0)