# File test.rb, line 253 def test_initialize good_1 = "if flag" good_2 = "unless flag" bad_1 = "heck no" assert(PageTemplate::IfCommand.new("if", "flag")) assert(PageTemplate::IfCommand.new("unless", "flag")) assert_raises(ArgumentError, "IfCommand will not initialize without a command declaring 'if/unless'") { PageTemplate::IfCommand.new(bad_1) } end