Sha256: 18499cf7fe59b627ea36e146f065c8709ce887dd556334528f09f3c166b49f0d

Contents?: true

Size: 1.08 KB

Versions: 8

Compression:

Stored size: 1.08 KB

Contents

!3 Only true page references should be changed during a rename.

There are several widgets that contains strings that might match the pattern for a wiki word.  When
a page is renamed, those strings should not be affected.

First build a page with lots of these ''protected'' widgets.

!|script|Page Builder|
|line|!-!path TargetPage-!|
|line|!-http://objectmentor.com/TargetPage-!|
|line|!-!img http://objectmentor.com/TargetPage.jpg-!|
|line|!-{{{TargetPage}}}-!|
|line|!-# TargetPage-!|
|line|!- !-TargetPage-! -!|
|line|this link should be renamed !-TargetPage-!|
|page|!-ProtectedWidgetPage-!|

Next create the target page.

|Page creator.|
|Page name.|Page contents.|valid?|
|!-TargetPage-!|whatever|true|

Then rename that page.

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

Next fetch the page.

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

Make sure that the new page name does not appear.

|Response Examiner.|
|type  |pattern|matchCount?|wrapped html?|
|contents|!-RenamedPage</a>-!|1||


Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xcfit-0.9.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteRenameResponder/TestProtectedWidgetsAreNotRenamed/content.txt
xcfit-0.8.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteRenameResponder/TestProtectedWidgetsAreNotRenamed/content.txt
xcfit-0.7.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteRenameResponder/TestProtectedWidgetsAreNotRenamed/content.txt
xcfit-0.6.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteRenameResponder/TestProtectedWidgetsAreNotRenamed/content.txt
xcfit-0.5.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteRenameResponder/TestProtectedWidgetsAreNotRenamed/content.txt
xcfit-0.4.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteRenameResponder/TestProtectedWidgetsAreNotRenamed/content.txt
xcfit-0.3.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteRenameResponder/TestProtectedWidgetsAreNotRenamed/content.txt
xcfit-0.2.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteRenameResponder/TestProtectedWidgetsAreNotRenamed/content.txt