Sha256: 2d4e9f48d6505f50e2c9ef422a3dd0e1f68128aa71d28ff9766c579099663c50

Contents?: true

Size: 420 Bytes

Versions: 22

Compression:

Stored size: 420 Bytes

Contents

require 'helper'

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

22 entries across 22 versions & 1 rubygems

Version Path
nanoc-4.7.9 test/base/test_layout.rb
nanoc-4.7.8 test/base/test_layout.rb
nanoc-4.7.7 test/base/test_layout.rb
nanoc-4.7.6 test/base/test_layout.rb
nanoc-4.7.5 test/base/test_layout.rb
nanoc-4.7.4 test/base/test_layout.rb
nanoc-4.7.3 test/base/test_layout.rb
nanoc-4.7.2 test/base/test_layout.rb
nanoc-4.7.1 test/base/test_layout.rb
nanoc-4.7.0 test/base/test_layout.rb
nanoc-4.6.4 test/base/test_layout.rb
nanoc-4.6.3 test/base/test_layout.rb
nanoc-4.6.2 test/base/test_layout.rb
nanoc-4.6.1 test/base/test_layout.rb
nanoc-4.6.0 test/base/test_layout.rb
nanoc-4.5.4 test/base/test_layout.rb
nanoc-4.5.3 test/base/test_layout.rb
nanoc-4.5.2 test/base/test_layout.rb
nanoc-4.5.1 test/base/test_layout.rb
nanoc-4.5.0 test/base/test_layout.rb