Changeset 274
- Timestamp:
- 06/07/07 22:26:02 (1 year ago)
- Files:
-
- trunk/lib/merb/merb_view_context.rb (modified) (1 diff)
- trunk/specs/merb/merb_part_controller_spec.rb (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/merb/merb_view_context.rb
r245 r274 9 9 @body 10 10 @_fingerprint_before 11 @pager12 11 @session 13 12 @headers 14 @page15 13 @cookies 16 14 @request trunk/specs/merb/merb_part_controller_spec.rb
r272 r274 8 8 memo << klass.new(self).dispatch(action) 9 9 end 10 p res 10 11 res.size == 1 ? res[0] : res 11 12 end … … 20 21 21 22 def index3 22 part TodoPart => :one, TodoPart => :list23 part(TodoPart => :one) + part(TodoPart => :list) 23 24 end 24 25 … … 57 58 controller,action = request(:get, '/main/index2') 58 59 controller.body.should == 59 "TODOPART\nDo this|Do that|Do the other thing\nTODOPART"60 "TODOPART\nDo this|Do that|Do the other thing\nTODOPART" 60 61 end 61 62 … … 63 64 controller,_ = request(:get, '/main/index') 64 65 controller.body.should == 65 "TODOLAYOUT\nTODOPART\nDo this|Do that|Do the other thing\nTODOPART\nTODOLAYOUT"66 "TODOLAYOUT\nTODOPART\nDo this|Do that|Do the other thing\nTODOPART\nTODOLAYOUT" 66 67 end 67 68 … … 69 70 controller,_ = request(:get, '/main/index3') 70 71 controller.body.should == 71 "TODOLAYOUT\nTODOPART\nDo this|Do that|Do the other thing\nTODOPART\nTODOLAYOUT" 72 "TODOPART\nDo this|Do that|Do the other thing\nTODOPART" + 73 "TODOLAYOUT\nTODOPART\nDo this|Do that|Do the other thing\nTODOPART\nTODOLAYOUT" 72 74 end 73 75
