mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 10:20:43 -07:00
Tests
- Organized the files - Cleaned up some of the white spacing issues - A lot can still be done to make the tests more readable to the new developers
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#!/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.join 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 # Assertions
|
||||
|
||||
end # Unit
|
||||
|
||||
end # Test
|
||||
Reference in New Issue
Block a user