# File test.rb, line 36 def test_add c = PageTemplate::CommentCommand.new('foo') assert(@@bc.add(c), "Use BlockCommand#add to add a new Command to the Block") assert_raises(TypeError, "BlockCommand#add only accepts Commands") { @@bc.add(23) } end