locomotivecms/engine — pull request #556 by owenfi (2012-11-19 11:00:24+00:00)
Title: I added the standardfilters.rb file from the liquid project

The split function seems to be missing or failing which makes parsing URI paths hard or impossible. I think this is a satisfactory way to integrate it.

Behavior before:

{{ 'this is a test' | split: ' ' | last }}
outputs: 't'

(just like if the split wasn't there)

Behavior with change:

{{ 'this is a test' | split: ' ' | last }}
outputs: 'test'

It seems to be running cleanly (though when I do the test suite a bunch fail, even on a clean checkout. Is there a better way to run the tests or could I be missing prerequisites?)

Clean repo and With standardfilters.rb:
290 scenarios (85 failed, 2 skipped, 203 passed)
2397 steps (57 failed, 224 skipped, 2116 passed)
1m9.170s
rake aborted!

Thanks you,
Owen