Permalink
Browse files

Handle changes to ENGINE_PATH since Rails 5.1

  • Loading branch information...
parndt committed Sep 25, 2017
1 parent 9f92ed9 commit 88f3eee61914d548dce5e7c1d1f8d3a57a0c9ece
Showing with 9 additions and 3 deletions.
  1. +9 −3 bin/rails
View
@@ -1,5 +1,11 @@
#!/usr/bin/env ruby
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
# This command will automatically be run when you run "rails" with Rails gems
# installed from the root of your application.
ENGINE_PATH = File.expand_path('../..', __FILE__)
load File.expand_path('../../spec/dummy/bin/rails', __FILE__)
begin
load File.join(File.expand_path('../../', __FILE__), 'spec/dummy/bin/rails')
rescue LoadError => load_error
warn "No dummy Rails application found! \n" \
"To create one in spec/dummy, please run: \n\n" \
" rake refinery:testing:dummy_app"
end

0 comments on commit 88f3eee

Please sign in to comment.