Refactoring page creation code [dm1]
This commit is contained in:
parent
f6a3b88693
commit
9abb4f575a
5 changed files with 29 additions and 34 deletions
|
@ -13,10 +13,8 @@ class PageTest < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def setup
|
||||
@page = Page.new(
|
||||
MockWeb.new,
|
||||
"FirstPage",
|
||||
"HisWay would be MyWay in kinda ThatWay in HisWay though MyWay \\OverThere -- see SmartEngine in that SmartEngineGUI",
|
||||
@page = Page.new(MockWeb.new, "FirstPage")
|
||||
@page.revise("HisWay would be MyWay in kinda ThatWay in HisWay though MyWay \\OverThere -- see SmartEngine in that SmartEngineGUI",
|
||||
Time.local(2004, 4, 4, 16, 50),
|
||||
"DavidHeinemeierHansson")
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue