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_admin-1.4.5 vendor/gems/express_templates/test/express_templates_test.rb
express_templates-0.9.4 test/express_templates_test.rb
express_templates-0.9.3 test/express_templates_test.rb
express_admin-1.4.4 vendor/gems/express_templates/test/express_templates_test.rb
express_admin-1.4.3 vendor/gems/express_templates/test/express_templates_test.rb
express_templates-0.9.1 test/express_templates_test.rb
express_admin-1.4.2 vendor/gems/express_templates/test/express_templates_test.rb
express_templates-0.9.0 test/express_templates_test.rb
express_admin-1.4.1 vendor/gems/express_templates/test/express_templates_test.rb
express_admin-1.4.0 vendor/gems/express_templates/test/express_templates_test.rb
express_templates-0.8.0 test/express_templates_test.rb
express_admin-1.3.2 vendor/gems/express_templates/test/express_templates_test.rb
express_admin-1.3.1 vendor/gems/express_templates/test/express_templates_test.rb
express_templates-0.7.1 test/express_templates_test.rb
express_templates-0.7.0 test/express_templates_test.rb
express_admin-1.3.0 vendor/gems/express_templates/test/express_templates_test.rb