Sha256: 074da29850c64ca232f5dcb394f03a1118e113d8628aa02ba19c7ce9386623ab

Contents?: true

Size: 423 Bytes

Versions: 19

Compression:

Stored size: 423 Bytes

Contents

require 'test_helper'

class ExpressTemplatesTest < ActiveSupport::TestCase
  test "we have a module" do
    assert_kind_of Module, ExpressTemplates
  end

  test "ExpressTemplates.render renders a template" do
    result = ExpressTemplates.render(self) do
      ul {
        li 'one'
        li 'two'
        li 'three'
      }
    end
    assert_equal "<ul><li>one</li><li>two</li><li>three</li></ul>", result
  end

end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
express_admin-1.2.1 vendor/gems/express_templates/test/express_templates_test.rb
express_admin-1.2.0 vendor/gems/express_templates/test/express_templates_test.rb
express_templates-0.5.0 test/express_templates_test.rb
express_templates-0.4.2 test/express_templates_test.rb
express_templates-0.4.1 test/express_templates_test.rb
express_templates-0.4.0 test/express_templates_test.rb
express_templates-0.3.6 test/express_templates_test.rb
express_templates-0.3.5 test/express_templates_test.rb
express_templates-0.3.4 test/express_templates_test.rb
express_templates-0.3.2 test/express_templates_test.rb
express_templates-0.3.1 test/express_templates_test.rb
express_templates-0.3.0 test/express_templates_test.rb
express_templates-0.2.7 test/express_templates_test.rb
express_templates-0.2.6 test/express_templates_test.rb
express_templates-0.2.5 test/express_templates_test.rb
express_templates-0.2.4 test/express_templates_test.rb
express_templates-0.2.3 test/express_templates_test.rb
express_templates-0.2.2 test/express_templates_test.rb
express_templates-0.2.0 test/gara_test.rb