aboutsummaryrefslogtreecommitdiffstats
path: root/test/dummy/config/boot.rb
diff options
context:
space:
mode:
authorSam Stephenson <sam@37signals.com>2018-02-08 11:01:46 -0600
committerSam Stephenson <sam@37signals.com>2018-02-08 11:01:46 -0600
commit38e1f12d79ec3313e42643e52f2d10cb5fbd5d5d (patch)
treee62eb8fa577c1c27820bcf8fef5b07b0c1a6085d /test/dummy/config/boot.rb
parent68d350ddacedf604717f0d1074d7624fa57757c2 (diff)
downloadrails-38e1f12d79ec3313e42643e52f2d10cb5fbd5d5d.tar.gz
rails-38e1f12d79ec3313e42643e52f2d10cb5fbd5d5d.tar.bz2
rails-38e1f12d79ec3313e42643e52f2d10cb5fbd5d5d.zip
Add dummy app
Diffstat (limited to 'test/dummy/config/boot.rb')
-rw-r--r--test/dummy/config/boot.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/dummy/config/boot.rb b/test/dummy/config/boot.rb
new file mode 100644
index 0000000000..c9aef85d40
--- /dev/null
+++ b/test/dummy/config/boot.rb
@@ -0,0 +1,5 @@
+# Set up gems listed in the Gemfile.
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__)
+
+require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
+$LOAD_PATH.unshift File.expand_path('../../../lib', __dir__)