Skip to content

Commit

Permalink
Update rails to 6.0
Browse files Browse the repository at this point in the history
This updates rails test to the current version. Rails now requires
ActiveRecord classes to have a connection when they are created, so we
can use include ActiveModel::Model to test the same thing.  This also
allows the tests to be run on ruby 2.7 without warnings. The previous
rails version was using a bigdecimal API that doesn't exist anymore.
  • Loading branch information
HParker committed Sep 2, 2020
1 parent ca44554 commit eab9253
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ source "http://rubygems.org"
gemspec

group :development, :test do
gem 'rake'
gem 'guard-rspec'
gem 'simplecov', require: false, platforms: [:mri]
gem 'coveralls', require: false, platforms: [:mri]

gem 'activerecord', '~> 4.1'
gem 'rake'
gem 'activerecord', "~> 6.0"
gem 'nokogiri', '~> 1.6'
gem 'ox', '>= 2.1.2', platforms: [:mri, :rbx]
gem 'oga', '>= 0.3.4'
Expand Down
4 changes: 3 additions & 1 deletion spec/sax-machine/sax_activerecord_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eab9253

Please sign in to comment.