We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cefc00d commit 04f6ab0Copy full SHA for 04f6ab0
test/acceptance/helper.rb
@@ -273,7 +273,10 @@ def generate
273
skips = %w(--skip-bundle --skip-javascript --skip-sprockets)
274
skips << "--skip-spring" if version.bundles_spring?
275
276
- system("rails '_#{version_constraint}_' new #{application.root} #{skips.join(' ')}")
+ rails = `ruby -e 'puts Gem.bin_path("railties", "rails", "#{version_constraint}")'`.chomp
277
+ system("#{rails} new #{application.root} #{skips.join(' ')}")
278
+
279
+ raise "application generation failed" unless application.exists?
280
281
FileUtils.mkdir_p(application.gem_home)
282
FileUtils.mkdir_p(application.user_home)
0 commit comments