Sha256: fbcc3a61aac58bf482e89a017599bcf3cd4520d1f1ff5e6767b2a4a87f1ecaf2
Contents?: true
Size: 711 Bytes
Versions: 4
Compression:
Stored size: 711 Bytes
Contents
require 'volt/page/targets/binding_document/component_node' describe ComponentNode do before do html = <<-END <!-- $0 -->Before <!-- $1 -->Inside<!-- $/1 --> After<!-- $/0 --> END @component = ComponentNode.new @component.html = html end it "should find a component from a binding id" do expect(@component.find_by_binding_id(1).to_html).to eq('Inside') expect(@component.find_by_binding_id(0).to_html).to eq('Before Inside After') end # it "should render if blocks" do # view = <<-END # {#if _show}show{/} title # END # # page = Page.new # # template = ViewParser.new(view, 'home/index/index/title') # # page.add_template # end end
Version data entries
4 entries across 4 versions & 1 rubygems