features/step_definitions/rails_steps.rb in katapult-0.4.0 vs features/step_definitions/rails_steps.rb in katapult-0.4.1
- old
+ new
@@ -84,11 +84,13 @@
NOTE
else
create_app(RailsHelper::APP_WITH_BASICS)
Dir.chdir(RailsHelper::APP_WITH_BASICS) do
- # :path will be correct when copied to the TEST_APP path
+ # :path is correct within the TEST_APP path
Katapult::BinaryUtil.run %(echo "gem 'katapult', path: '../../..'" >> Gemfile)
+ # Make sure katapult's version of Rails is used
+ Katapult::BinaryUtil.run 'bundle update rails --quiet'
Katapult::BinaryUtil.run 'bin/rails generate katapult:basics --db-user katapult --db-password secret'
# Spring running in the cache dir is of no further use, but would
# break things when the cache dir is removed
Katapult::BinaryUtil.run 'spring stop'
end