Sha256: 7c49bc7b97f5ac0754b8984542c037eae97929f673a28e7065f3ac33d849eb76
Contents?: true
Size: 748 Bytes
Versions: 1
Compression:
Stored size: 748 Bytes
Contents
require_relative "test_helper" class TestTestCase < SmarfDocTest def test_case @test_case ||= SmarfDoc::TestCase.new(request, response) end def test_compile_template template = "<%= 2 + 2 %>" test_case.template = template assert_equal test_case.template, template, "Could not set a template." assert_equal "4", test_case.compile_template, "Could not compile template" end def test_compile_with_file SmarfDoc.config { |c| c.template_file = 'test/fake_template.md' } test = SmarfDoc::TestCase.new(request, response) test.template = SmarfDoc::Conf.template assert_includes test.compile_template, "use ERB" end def test_created_at assert test_case.created_at.is_a?(Time) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smarf_doc-1.0.0 | test/test_test_case.rb |