Sha256: 90b76baa90193ad00d20fb732d09bb29dd88da2e97f4fba8ef0dc988da2f001a
Contents?: true
Size: 645 Bytes
Versions: 2
Compression:
Stored size: 645 Bytes
Contents
module TemplateTestHelper TEMPLATE_PATH = File.join(__dir__, "templates") end module Haml::Filters::Test include Haml::Filters::Base def render(text) "TESTING HAHAHAHA!" end end module Haml::Helpers def test_partial(name, locals = {}) Haml::Engine.new(File.read(File.join(TemplateTestHelper::TEMPLATE_PATH, "_#{name}.haml")), Haml::Template.options).render(self, locals) end end class Egocentic def method_missing(*args) self end end class DummyController attr_accessor :logger def initialize @logger = Egocentic.new end def self.controller_path '' end def controller_path '' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
haml-5.0.0 | test/template_test_helper.rb |
haml-5.0.0.beta.2 | test/template_test_helper.rb |