diff --git a/Gemfile b/Gemfile index 7c2c3da..50fb810 100644 --- a/Gemfile +++ b/Gemfile @@ -8,7 +8,7 @@ group :development, :test do gem 'simplecov', require: false, platforms: [:mri] gem 'coveralls', require: false, platforms: [:mri] - gem 'activerecord', '~> 4.1' + gem 'activerecord', "~> 6.0" gem 'nokogiri', '~> 1.6' gem 'ox', '>= 2.1.2', platforms: [:mri, :rbx] gem 'oga', '>= 0.3.4' diff --git a/spec/sax-machine/sax_activerecord_spec.rb b/spec/sax-machine/sax_activerecord_spec.rb index 2c17fe4..4124c0d 100644 --- a/spec/sax-machine/sax_activerecord_spec.rb +++ b/spec/sax-machine/sax_activerecord_spec.rb @@ -3,7 +3,9 @@ describe "SAXMachine ActiveRecord integration" do before do - class MySaxModel < ActiveRecord::Base + class MySaxModel + include ActiveModel::Model + SAXMachine.configure(MySaxModel) do |c| c.element :title end