Changeset 12243 for platform/tdiary/spec
- Timestamp:
- 05/23/08 17:10:36 (6 months ago)
- Location:
- platform/tdiary/spec
- Files:
-
- 2 modified
-
account_ad_spec.rb (modified) (1 diff)
-
spec_helper.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/spec/account_ad_spec.rb
r5345 r12243 46 46 :name => 'hsbt')} 47 47 end 48 49 describe "in configuration mode" do 50 before do 51 @plugin = setup_account_ad_plugin('Hatena', 'hsbt', 'conf') 52 end 53 54 55 it "should not raise error" do 56 lambda{@plugin.conf_proc}.should_not raise_error 57 end 58 end 48 59 end 49 60 -
platform/tdiary/spec/spec_helper.rb
r6812 r12243 19 19 @footer_procs = [] 20 20 @update_procs = [] 21 @conf_procs = [] 21 22 @body_enter_procs = [] 22 23 @body_leave_procs = [] … … 24 25 25 26 def add_conf_proc( key, label, genre=nil, &block ) 26 # XXX Do we need to verify add_* called??27 @conf_procs << block 27 28 end 28 29 … … 37 38 def add_update_proc( block = Proc::new ) 38 39 @update_procs << block 40 end 41 42 def conf_proc 43 r = [] 44 @conf_procs.each do |proc| 45 r << proc.call 46 end 47 r.join.chomp 39 48 end 40 49
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)