aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml3
-rw-r--r--test/support/fake_record.rb2
-rw-r--r--test/visitors/test_to_sql.rb2
3 files changed, 6 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 4e1bca45c7..081b586eb4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,6 +11,7 @@ rvm:
- 2.2.8
- 2.3.5
- 2.4.2
+ - 2.5.0
- ruby-head
- jruby-9.1.12.0
- jruby-head
@@ -21,6 +22,8 @@ matrix:
- rvm: jruby-9.1.12.0
- rvm: jruby-head
bundler_args: --jobs 3 --retry 3
+before_install:
+ - "travis_retry gem update --system"
notifications:
email: false
irc:
diff --git a/test/support/fake_record.rb b/test/support/fake_record.rb
index 03116ff2ee..75ac1e072f 100644
--- a/test/support/fake_record.rb
+++ b/test/support/fake_record.rb
@@ -1,4 +1,6 @@
# frozen_string_literal: true
+
+require 'date'
module FakeRecord
class Column < Struct.new(:name, :type)
end
diff --git a/test/visitors/test_to_sql.rb b/test/visitors/test_to_sql.rb
index 77756b9e99..4416a11b8d 100644
--- a/test/visitors/test_to_sql.rb
+++ b/test/visitors/test_to_sql.rb
@@ -233,7 +233,7 @@ module Arel
end
it "should visit_BigDecimal" do
- compile Nodes.build_quoted(BigDecimal.new('2.14'))
+ compile Nodes.build_quoted(BigDecimal('2.14'))
end
it "should visit_Date" do