Sha256: 626a199460f5f51345596449deb1031f4e9cf4d9cdbbc7c06d8c627524679f20

Contents?: true

Size: 402 Bytes

Versions: 39

Compression:

Stored size: 402 Bytes

Contents

class Nanoc::Int::LayoutTest < Nanoc::TestCase
  def test_initialize
    # Make sure attributes are cleaned
    layout = Nanoc::Int::Layout.new('content', { 'foo' => 'bar' }, '/foo')
    assert_equal({ foo: 'bar' }, layout.attributes)
  end

  def test_attributes
    layout = Nanoc::Int::Layout.new('content', { 'foo' => 'bar' }, '/foo/')
    assert_equal({ foo: 'bar' }, layout.attributes)
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
nanoc-4.4.5 test/base/test_layout.rb
nanoc-4.4.4 test/base/test_layout.rb
nanoc-4.4.3 test/base/test_layout.rb
nanoc-4.4.2 test/base/test_layout.rb
nanoc-4.4.1 test/base/test_layout.rb
nanoc-4.4.0 test/base/test_layout.rb
nanoc-4.3.8 test/base/test_layout.rb
nanoc-4.3.7 test/base/test_layout.rb
nanoc-4.3.6 test/base/test_layout.rb
nanoc-4.3.5 test/base/test_layout.rb
nanoc-4.3.4 test/base/test_layout.rb
nanoc-4.3.3 test/base/test_layout.rb
nanoc-4.3.2 test/base/test_layout.rb
nanoc-4.3.1 test/base/test_layout.rb
nanoc-4.3.0 test/base/test_layout.rb
nanoc-4.2.4 test/base/test_layout.rb
nanoc-4.2.3 test/base/test_layout.rb
nanoc-4.2.2 test/base/test_layout.rb
nanoc-4.2.1 test/base/test_layout.rb
nanoc-4.2.0 test/base/test_layout.rb