Sha256: 8883a25fbc81ae64116b6da8e7f7fce856f9f075186ae00fff29f49694276af6

Contents?: true

Size: 467 Bytes

Versions: 56

Compression:

Stored size: 467 Bytes

Contents

require 'test_helper'

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

  def assigns
    {}
  end

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

end

Version data entries

56 entries across 56 versions & 2 rubygems

Version Path
express_templates-0.11.10 test/express_templates_test.rb
express_templates-0.11.9 test/express_templates_test.rb
express_templates-0.11.8 test/express_templates_test.rb
express_templates-0.11.7 test/express_templates_test.rb
express_templates-0.11.6 test/express_templates_test.rb
express_templates-0.11.5 test/express_templates_test.rb
express_templates-0.11.4 test/express_templates_test.rb
express_admin-1.7.5 vendor/gems/express_templates/test/express_templates_test.rb
express_admin-1.7.4 vendor/gems/express_templates/express_templates/test/express_templates_test.rb
express_admin-1.7.3 vendor/gems/express_templates/test/express_templates_test.rb
express_admin-1.7.2 vendor/gems/express_templates/test/express_templates_test.rb
express_admin-1.7.1 vendor/gems/express_templates/test/express_templates_test.rb
express_admin-1.6.13 vendor/gems/express_templates/test/express_templates_test.rb
express_admin-1.6.12 vendor/gems/express_templates/test/express_templates_test.rb
express_admin-1.6.11 vendor/gems/express_templates/test/express_templates_test.rb
express_admin-1.6.10 vendor/gems/express_templates/test/express_templates_test.rb
express_admin-1.6.9 vendor/gems/express_templates/test/express_templates_test.rb
express_admin-1.6.8 vendor/gems/express_templates/test/express_templates_test.rb
express_admin-1.6.7 vendor/gems/express_templates/test/express_templates_test.rb
express_templates-0.11.3 test/express_templates_test.rb