1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
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,16 +2,18 @@
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 "rubocop", "~> 0.92"
-gem "rubocop-packaging", "~> 0.5"
+gem "sqlite3"
+
+gem "rubocop"
+gem "rubocop-packaging"
# Required for testing Rails 6.1 on MRI 3.1+
gem "net-smtp" if RUBY_VERSION.to_f > 3.0
|