Skip to content

Commit

Permalink
Merge pull request #5011 from plataformatec/frg-fix-sqlite-warning
Browse files Browse the repository at this point in the history
Fix SQLite3 warning when running tests
  • Loading branch information
feliperenan authored Jan 28, 2019
2 parents f332911 + 45438fc commit e72839f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/rails_app/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,10 @@ class Application < Rails::Application
config.to_prepare do
Devise::SessionsController.layout "application"
end

# Remove this check once Rails 5.0 support is removed.
if Devise::Test.rails52_and_up?
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
end
end
end

0 comments on commit e72839f

Please sign in to comment.