Method: TestSpecialMarkup#test_no_blocks

Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/builder-3.2.4/test/test_markupbuilder.rb

#test_no_blocksObject



407
408
409
410
411
412
413
414
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/builder-3.2.4/test/test_markupbuilder.rb', line 407

def test_no_blocks
  assert_raise(Builder::IllegalBlockError) do
    @xml.instruct! { |x| x.hi }
  end
  assert_raise(Builder::IllegalBlockError) do
    @xml.comment!(:element) { |x| x.hi }
  end
end