Sha256: c5be1182902468a3e94778cc7c17b23e528bc65f9a8393ab308242eeebf9cbc4

Contents?: true

Size: 441 Bytes

Versions: 12

Compression:

Stored size: 441 Bytes

Contents

require 'test_helper'
require_relative 'shared/adapter_tests'

module HandlebarsAssets
  class HandlebarsTemplateTest < Minitest::Test
    include AdapterTests

    def teardown
      HandlebarsAssets::Config.reset!
      HandlebarsAssets::Handlebars.reset!
    end

    def render_it(scope, source)
      template = HandlebarsAssets::HandlebarsTemplate.new(scope.pathname.to_s) { source }
      template.render(scope, {})
    end
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
handlebars_assets-0.23.9 test/handlebars_assets/tilt_handlebars_test.rb
handlebars_assets-0.23.8 test/handlebars_assets/tilt_handlebars_test.rb
handlebars_assets-0.23.7 test/handlebars_assets/tilt_handlebars_test.rb
handlebars_assets-0.23.6 test/handlebars_assets/tilt_handlebars_test.rb
handlebars_assets-0.23.5 test/handlebars_assets/tilt_handlebars_test.rb
handlebars_assets-0.23.4 test/handlebars_assets/tilt_handlebars_test.rb
handlebars_assets-0.23.3 test/handlebars_assets/tilt_handlebars_test.rb
handlebars_assets-0.23.2 test/handlebars_assets/tilt_handlebars_test.rb
arcabouco-0.2.13 vendor/bundle/gems/handlebars_assets-0.23.1/test/handlebars_assets/tilt_handlebars_test.rb
handlebars_assets-0.23.1 test/handlebars_assets/tilt_handlebars_test.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/handlebars_assets-0.23.0/test/handlebars_assets/tilt_handlebars_test.rb
handlebars_assets-0.23.0 test/handlebars_assets/tilt_handlebars_test.rb