Sha256: 3a94e2d42b7e65220a59d70102eccadc9e23d262fb750c0d8899e89eabaa6b4f
Contents?: true
Size: 601 Bytes
Versions: 4
Compression:
Stored size: 601 Bytes
Contents
require 'minitest/autorun' require File.join(File.dirname(__FILE__), 'configure') describe Layout do before do Layout::Configuration.load('test/layout.rb') @root = Layout::Configuration.root end it "has four children" do # test query Layout::Configuration.find(:gadget).length.must_equal 2 # test normal find Layout::Configuration.find(:gadget, 'quick_buy').name.must_equal :quick_buy # test Inherit Layout::Configuration.find(:gadget, :product_link).find(:template)[0].value.must_equal "Hello World" # More is coming... (test multi, alias_node) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
qor_dsl-0.0.4 | test/layout_test.rb |
qor_dsl-0.0.3 | test/layout_test.rb |
qor_dsl-0.0.2 | test/layout_test.rb |
qor_dsl-0.0.1 | test/layout_test.rb |