Skip to content

Commit

Permalink
fix test failing and being noisy on ruby 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser authored and tbrisker committed Jul 1, 2018
1 parent 3057aec commit 9cff81b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions spec/rails_app/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ class Application < Rails::Application
config.i18n.enforce_available_locales = true
end
end

require 'active_record/connection_adapters/sqlite3_adapter'
if ActiveRecord::ConnectionAdapters::SQLite3Adapter.respond_to?(:represent_boolean_as_integer)
ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer = true
end
3 changes: 1 addition & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
ENV['RAILS_ENV'] = 'test'

$:.unshift File.dirname(__FILE__)
$LOAD_PATH.unshift File.dirname(__FILE__)

require File.expand_path('../../spec/rails_app/config/environment', __FILE__)
require 'rails/test_help'

require 'audited'

class ActiveSupport::TestCase

setup do
ActiveRecord::Migration.verbose = false
end
Expand Down

0 comments on commit 9cff81b

Please sign in to comment.