diff --git a/.travis.yml b/.travis.yml index e37db300..0061b657 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ rvm: - "2.5.7" - "2.6.5" - "2.7.0" + - "3.0.0" gemfile: - gemfiles/rails_5.0.gemfile - gemfiles/rails_5.1.gemfile @@ -19,5 +20,11 @@ matrix: exclude: - rvm: 2.4.9 gemfile: gemfiles/rails_6.0.gemfile + - rvm: 3.0.0 + gemfile: gemfiles/rails_5.0.gemfile + - rvm: 3.0.0 + gemfile: gemfiles/rails_5.1.gemfile + - rvm: 3.0.0 + gemfile: gemfiles/rails_5.2.gemfile script: "bundle exec rake spec" diff --git a/gemfiles/rails_5.0.gemfile b/gemfiles/rails_5.0.gemfile index 7528170e..9d9e4d01 100644 --- a/gemfiles/rails_5.0.gemfile +++ b/gemfiles/rails_5.0.gemfile @@ -15,10 +15,4 @@ platform :ruby do gem 'sqlite3', '~> 1.3.0' end -platforms :rbx do - gem 'racc' - gem 'rubysl', '~> 2.0' - gem 'psych' -end - gemspec :path => '../' diff --git a/gemfiles/rails_5.1.gemfile b/gemfiles/rails_5.1.gemfile index e5e0b9f2..47976f74 100644 --- a/gemfiles/rails_5.1.gemfile +++ b/gemfiles/rails_5.1.gemfile @@ -15,10 +15,4 @@ platform :ruby do gem 'sqlite3', '~> 1.3.0' end -platforms :rbx do - gem 'racc' - gem 'rubysl', '~> 2.0' - gem 'psych' -end - gemspec :path => '../' diff --git a/gemfiles/rails_5.2.gemfile b/gemfiles/rails_5.2.gemfile index 53362f8e..1bedd86e 100644 --- a/gemfiles/rails_5.2.gemfile +++ b/gemfiles/rails_5.2.gemfile @@ -15,10 +15,4 @@ platform :ruby do gem 'sqlite3', '~> 1.3.0' end -platforms :rbx do - gem 'racc' - gem 'rubysl', '~> 2.0' - gem 'psych' -end - gemspec :path => '../' diff --git a/gemfiles/rails_6.0.gemfile b/gemfiles/rails_6.0.gemfile index 89fd37d6..e4453669 100644 --- a/gemfiles/rails_6.0.gemfile +++ b/gemfiles/rails_6.0.gemfile @@ -15,10 +15,4 @@ platform :ruby do gem 'sqlite3' end -platforms :rbx do - gem 'racc' - gem 'rubysl', '~> 2.0' - gem 'psych' -end - gemspec :path => '../' diff --git a/spec/associations/active_record_extensions_spec.rb b/spec/associations/active_record_extensions_spec.rb index 400d9a06..a1a11982 100644 --- a/spec/associations/active_record_extensions_spec.rb +++ b/spec/associations/active_record_extensions_spec.rb @@ -180,7 +180,7 @@ class Book < ActiveRecord::Base it "doesn't raise any exception when the belongs_to association class can't be autoloaded" do # Simulate autoloader allow_any_instance_of(String).to receive(:constantize).and_raise(LoadError, "Unable to autoload constant NonExistent") - expect { School.belongs_to :city, {class_name: 'NonExistent'} }.not_to raise_error + expect { School.belongs_to :city, class_name: 'NonExistent' }.not_to raise_error end end