Sha256: c8680c4b04064de579539589390d89860b3eb3f153698cd8260f40f07d6e1b39
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/pin_template') class TestPinTemplate < Test::Unit::TestCase def test_initialization parameters = { closer: '</ul>', item: '<li></li>', name: 'default', opener: '</ul>', } t = PinPress::PinTemplate.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