Changeset 5312

Show
Ignore:
Timestamp:
01/23/08 01:32:48 (5 years ago)
Author:
kakutani
Message:

platform/tdiary/spec/spec_helper.rb: support #add_update_proc

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/spec/spec_helper.rb

    r5279 r5312  
    1414                @date = nil 
    1515                @header_procs = [] 
     16                @update_procs = [] 
    1617        end 
    1718 
     
    2223        def add_header_proc( block = Proc::new ) 
    2324                @header_procs << block 
     25        end 
     26 
     27        def add_update_proc( block = Proc::new ) 
     28                @update_procs << block 
    2429        end 
    2530 
     
    3439        class Config 
    3540 
    36                 attr_accessor :index, :html_title  
     41                attr_accessor :index, :html_title 
    3742 
    3843                def initialize