From 6cfd1e536a9bdaa92195ab4d6927680c18574582 Mon Sep 17 00:00:00 2001 From: Alice Nodelman Date: Tue, 24 Mar 2015 11:44:12 -0700 Subject: [PATCH] (BKR-147) add Gemfile setting for BEAKER_VERSION for puppet... puppetdb, etc - support for BEAKER_VERSION and BEAKER_RSPEC_VERSION in gemfile --- Gemfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index a9e0734a4..cc4048aec 100644 --- a/Gemfile +++ b/Gemfile @@ -21,11 +21,15 @@ group :development, :unit_tests do gem 'json', :require => false end +beaker_version = ENV['BEAKER_VERSION'] beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION'] group :system_tests do + if beaker_version + gem 'beaker', *location_for(beaker_version) + end if beaker_rspec_version gem 'beaker-rspec', *location_for(beaker_rspec_version) - else + else gem 'beaker-rspec', :require => false end gem 'serverspec', :require => false