Skip to content

Commit 0388376

Browse files
committed
Merge pull request Shopify#296 from Shopify/ruby2.1.0
Ruby2.1.0
2 parents 9ed2fa4 + 57c8583 commit 0388376

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

.travis.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
rvm:
22
- 1.9.3
33
- 2.0.0
4-
- ruby-head
4+
- 2.1.0
55
- jruby-19mode
66
- jruby-head
77
- rbx-19mode
88
matrix:
99
allow_failures:
10-
- rvm: ruby-head
1110
- rvm: rbx-19mode
1211
- rvm: jruby-head
1312

test/liquid/standard_filter_test.rb

-6
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,6 @@ def test_times
232232
assert_template_result "12", "{{ 3 | times:4 }}"
233233
assert_template_result "0", "{{ 'foo' | times:4 }}"
234234

235-
# Ruby v1.9.2-rc1, or higher, backwards compatible Float test
236-
assert_match(/(6\.3)|(6\.(0{13})1)/, Template.parse("{{ '2.1' | times:3 }}").render)
237-
238235
assert_template_result "6", "{{ '2.1' | times:3 | replace: '.','-' | plus:0}}"
239236

240237
assert_template_result "7.25", "{{ 0.0725 | times:100 }}"
@@ -244,9 +241,6 @@ def test_divided_by
244241
assert_template_result "4", "{{ 12 | divided_by:3 }}"
245242
assert_template_result "4", "{{ 14 | divided_by:3 }}"
246243

247-
# Ruby v1.9.2-rc1, or higher, backwards compatible Float test
248-
assert_match(/4\.(6{13,14})7/, Template.parse("{{ 14 | divided_by:'3.0' }}").render)
249-
250244
assert_template_result "5", "{{ 15 | divided_by:3 }}"
251245
assert_template_result "Liquid error: divided by 0", "{{ 5 | divided_by:0 }}"
252246

0 commit comments

Comments
 (0)