Sha256: abc577636bb41d04ea0ffd45ab9abd347adf41a48db3116080be1dad863ce123

Contents?: true

Size: 540 Bytes

Versions: 5

Compression:

Stored size: 540 Bytes

Contents

require 'test_helper'

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

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

    t = PinPress::Template.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/pinpress_template_test.rb
pinpress-1.2.2 test/pinpress_template_test.rb
pinpress-1.2.1 test/pinpress_template_test.rb
pinpress-1.2.0 test/pinpress_template_test.rb
pinpress-1.1.2 test/pinpress_template_test.rb