From: Antonio Terceiro <terceiro@debian.org>
Date: Thu, 7 Feb 2019 19:07:07 -0200
Subject: Support running tests under bundler

... and load the right things under autopkgtest.

Reviewed-By: Daniel Leidert <dleidert@debian.org>
Bug-Debian: https://bugs.debian.org/956598
---
 Gemfile | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

--- a/Gemfile
+++ b/Gemfile
@@ -2,14 +2,16 @@
 
 source "http://rubygems.org"
 
-gemspec
-
-if RUBY_VERSION.to_f < 3.0
-  gem "sqlite3", "~> 1.3.13"
+if ENV['AUTOPKGTEST_TMP']
+  gem 'combustion'
+  gem 'rails'
+  gem 'rspec'
 else
-  gem "sqlite3", "~> 1.4"
+  gemspec
 end
 
+gem "sqlite3"
+
 if RUBY_VERSION.to_f < 2.3
   gem "i18n",     "< 1.6"
   gem "nio4r",    "< 2.4"
@@ -17,8 +19,8 @@
 end
 
 if RUBY_VERSION.to_f > 2.4
-  gem "rubocop",           "~> 0.92"
-  gem "rubocop-packaging", "~> 0.5"
+  gem "rubocop"
+  gem "rubocop-packaging"
 end
 
 # Required for testing Rails 6.1 on MRI 3.1+
