Sha256: 60dcbe8eca81daa22e63ac05bfebb3a0f260bb761c33e938bd0e26e33c16c21f

Contents?: true

Size: 625 Bytes

Versions: 5

Compression:

Stored size: 625 Bytes

Contents

require 'test_helper'

require File.join(File.dirname(__FILE__), '..', 'lib/pinpress/templates/template')
require File.join(File.dirname(__FILE__), '..', 'lib/pinpress/templates/tag_template')

class TestTagTemplate < Test::Unit::TestCase
  def test_initialization
    parameters = {
      closer: '</ul>',
      item: '<li></li>',
      name: 'default',
      opener: '</ul>',
    }

    t = PinPress::TagTemplate.new(parameters)
    assert_equal(t.closer, parameters[:closer])
    assert_equal(t.item, parameters[:item])
    assert_equal(t.name, parameters[:name])
    assert_equal(t.opener, parameters[:opener])
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pinpress-1.2.3 test/tag_template_test.rb
pinpress-1.2.2 test/tag_template_test.rb
pinpress-1.2.1 test/tag_template_test.rb
pinpress-1.2.0 test/tag_template_test.rb
pinpress-1.1.2 test/tag_template_test.rb