mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 10:15:40 +03:00
- extras path now uses File.join instead of string concatenation - extras path is only loaded into $LOAD_PATH if it's not already part of it
21 lines
544 B
Ruby
21 lines
544 B
Ruby
#!/usr/bin/env ruby
|
|
extras_path = File.join File.dirname(__FILE__), 'extra'
|
|
$LOAD_PATH.unshift(extras_path) unless $LOAD_PATH.include? extras_path
|
|
|
|
require 'test/unit'
|
|
require 'test/unit/assertions'
|
|
require 'caller'
|
|
require 'breakpoint'
|
|
require File.dirname(__FILE__) + '/../lib/liquid'
|
|
|
|
|
|
module Test
|
|
module Unit
|
|
module Assertions
|
|
include Liquid
|
|
def assert_template_result(expected, template, assigns={}, message=nil)
|
|
assert_equal expected, Template.parse(template).render(assigns)
|
|
end
|
|
end
|
|
end
|
|
end |