Skip to content

Commit 04f6ab0

Browse files
committed
Fix CI
The method of activating the desired rails version was not working correctly.
1 parent cefc00d commit 04f6ab0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/acceptance/helper.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,10 @@ def generate
273273
skips = %w(--skip-bundle --skip-javascript --skip-sprockets)
274274
skips << "--skip-spring" if version.bundles_spring?
275275

276-
system("rails '_#{version_constraint}_' new #{application.root} #{skips.join(' ')}")
276+
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?
277280

278281
FileUtils.mkdir_p(application.gem_home)
279282
FileUtils.mkdir_p(application.user_home)

0 commit comments

Comments
 (0)