diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2018-01-25 19:16:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-25 19:16:58 -0500 |
commit | eb3f968b5ffdd3b343e7d190f1aa0b36864f56a2 (patch) | |
tree | d383a17807f5d274098f409dafde4d4ce670a0a5 | |
parent | df2b74b53664cc3ce3a49156c555b84c134bb75a (diff) | |
parent | cbbe9ed392bfe146fc0871653aad9b619cef8509 (diff) | |
download | rails-eb3f968b5ffdd3b343e7d190f1aa0b36864f56a2.tar.gz rails-eb3f968b5ffdd3b343e7d190f1aa0b36864f56a2.tar.bz2 rails-eb3f968b5ffdd3b343e7d190f1aa0b36864f56a2.zip |
Merge pull request #516 from yahonda/ruby250
CI with Ruby 2.5.0
-rw-r--r-- | .travis.yml | 3 | ||||
-rw-r--r-- | test/support/fake_record.rb | 2 | ||||
-rw-r--r-- | test/visitors/test_to_sql.rb | 2 |
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 |