Sha256: b982f97fea63ed55fbe93bd6085ac1f892e6a7151154963373c544edc3abb25c
Contents?: true
Size: 906 Bytes
Versions: 15
Compression:
Stored size: 906 Bytes
Contents
require File.join(File.dirname(__FILE__), 'abstract_unit') class MacroFilterTest < Test::Unit::TestCase def test_should_retrieve_macro assert_equal SampleMacro, FilteredColumn.macros[:sample_macro] end def test_sample_macro assert_equal %(foo: - flip: - text: test), process_macros("<macro:sample>test</macro:sample>") end def test_sample_macro_with_attributes assert_equal %(foo: foo - flip: bar - text: test), process_macros(%(<macro:sample foo="foo" flip="bar">test</macro:sample>)) end def test_sample_macro_with_underscored_attributes assert_equal %(foo: foo - flip: bar - text: test), process_macros(%(<macro:sample foo_bar="foo" flip="bar">test</macro:sample>)) end def test_should_escape_macros_with_textile assert_equal %(foo: - flip: - text: <tt>test</tt>), process_filter(:textile_filter, "<macro:sample><tt>test</tt></macro:sample>") end end
Version data entries
15 entries across 15 versions & 2 rubygems