Skip to content
Browse files

Tests run correctly on Rails 4 again

* We cannot use the bundle-generated binstub anymore
  • Loading branch information...
1 parent 4ba95fe commit f69d5553606f2caf489321387c8f337f03c8aafb @alindeman alindeman committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 Rakefile
6 Rakefile
@@ -48,8 +48,12 @@ namespace :generate do
desc "generate a fresh app with rspec installed"
task :app do |t|
- sh "rails new ./tmp/example_app --skip-javascript --skip-gemfile --skip-git --skip-test-unit"
bindir = File.expand_path("bin")
+ # Rails 4 cannot use a `rails` binstub generated by Bundler
+ sh "rm #{bindir}/rails"
+ sh "bundle exec rails new ./tmp/example_app --skip-javascript --skip-gemfile --skip-git --skip-test-unit"
if test ?d, bindir
Dir.chdir("./tmp/example_app") do
Dir.mkdir("bin") unless"bin")

0 comments on commit f69d555

Please sign in to comment.
Something went wrong with that request. Please try again.