Blame view

test/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteRenameResponder/TestRenamePageThatRefersToItself/content.txt 783 Bytes
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
!3 When a page is renamed, any internal links to that page are changed.

If you have a page that refers to itself, then its internal references will be changed.

First build the page with a self reference.

|Page creator.|
|Page name.|Page contents.|Page attributes.|valid?|
|!-MyPage-!|!-refer to self MyPage-!||true|

Then rename that page.

|Response Requester.|
|uri   |status?|
|!-MyPage?responder=renamePage&newName=ThePage&refactorReferences=on-!||

Next fetch the page.

|Response Requester.|
|uri|valid?|contents?|
|!-ThePage-!|true||

Make sure that the new name is present and that the old name is not.

|Response Examiner.|
|type  |pattern|matches?|wrapped html?|
|contents|!-ThePage-!|true||

|Response Examiner.|
|type  |pattern|matches?|
|contents|!-MyPage-!|false|