Merge pull request #296 from Shopify/ruby2.1.0

Ruby2.1.0
This commit is contained in:
Arthur Nogueira Neves
2014-01-07 08:55:03 -08:00
2 changed files with 1 additions and 8 deletions

View File

@@ -1,13 +1,12 @@
rvm:
- 1.9.3
- 2.0.0
- ruby-head
- 2.1.0
- jruby-19mode
- jruby-head
- rbx-19mode
matrix:
allow_failures:
- rvm: ruby-head
- rvm: rbx-19mode
- rvm: jruby-head

View File

@@ -232,9 +232,6 @@ class StandardFiltersTest < Test::Unit::TestCase
assert_template_result "12", "{{ 3 | times:4 }}"
assert_template_result "0", "{{ 'foo' | times:4 }}"
# Ruby v1.9.2-rc1, or higher, backwards compatible Float test
assert_match(/(6\.3)|(6\.(0{13})1)/, Template.parse("{{ '2.1' | times:3 }}").render)
assert_template_result "6", "{{ '2.1' | times:3 | replace: '.','-' | plus:0}}"
assert_template_result "7.25", "{{ 0.0725 | times:100 }}"
@@ -244,9 +241,6 @@ class StandardFiltersTest < Test::Unit::TestCase
assert_template_result "4", "{{ 12 | divided_by:3 }}"
assert_template_result "4", "{{ 14 | divided_by:3 }}"
# Ruby v1.9.2-rc1, or higher, backwards compatible Float test
assert_match(/4\.(6{13,14})7/, Template.parse("{{ 14 | divided_by:'3.0' }}").render)
assert_template_result "5", "{{ 15 | divided_by:3 }}"
assert_template_result "Liquid error: divided by 0", "{{ 5 | divided_by:0 }}"