mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Reverted james filter in tags branch
This reverts commit 282786d7e2.
Conflicts:
lib/liquid.rb
lib/liquid/variable.rb
test/if_else_test.rb
This commit is contained in:
+3
-4
@@ -1,11 +1,10 @@
|
||||
require File.dirname(__FILE__) + '/helper'
|
||||
|
||||
class IfElseTest < Test::Unit::TestCase
|
||||
class AssignTest < Test::Unit::TestCase
|
||||
include Liquid
|
||||
|
||||
def test_with_filtered_expressions
|
||||
assert_template_result('foo','{% assign foo = values|sort|last %}{{ foo }}', 'values' => %w{foo bar baz})
|
||||
assert_template_result('foo','{% assign sorted = values|sort %}{{ sorted | last }}', 'values' => %w{foo bar baz})
|
||||
def test_assigned_variable
|
||||
assert_template_result('.foo.','{% assign foo = values %}.{{ foo }}.', 'values' => %w{foo bar baz})
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user