2017-12-11 04:05:11 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-03-05 22:07:32 +00:00
|
|
|
require "rubygems"
|
2011-02-08 17:16:35 +00:00
|
|
|
|
2017-09-20 09:09:41 +00:00
|
|
|
# When you run rake locally (not on travis) in this dummy app, set the
|
|
|
|
# BUNDLE_GEMFILE env. variable to ensure that the correct version of AR is used
|
|
|
|
# for e.g. migrations. See examples in CONTRIBUTING.md.
|
2016-12-11 08:00:13 +00:00
|
|
|
unless ENV.key?("BUNDLE_GEMFILE")
|
2016-12-10 18:49:41 +00:00
|
|
|
gemfile = File.expand_path("../../../../Gemfile", __FILE__)
|
|
|
|
if File.exist?(gemfile)
|
|
|
|
puts "Booting PT test dummy app: Using gemfile: #{gemfile}"
|
|
|
|
ENV["BUNDLE_GEMFILE"] = gemfile
|
|
|
|
end
|
2011-02-08 17:16:35 +00:00
|
|
|
end
|
2016-12-10 18:49:41 +00:00
|
|
|
require "bundler"
|
|
|
|
Bundler.setup
|
2011-02-08 17:16:35 +00:00
|
|
|
|
2016-12-10 18:49:41 +00:00
|
|
|
$LOAD_PATH.unshift(File.expand_path("../../../../lib", __FILE__))
|