features/step_definitions/rails_steps.rb in katapult-0.1.2 vs features/step_definitions/rails_steps.rb in katapult-0.2.0
- old
+ new
@@ -1,5 +1,7 @@
+require 'katapult/binary_util'
+
module KatapultRailsHelper
def with_aruba_timeout(timeout, &block)
original_aruba_timeout = aruba.config.exit_timeout
aruba.config.exit_timeout = timeout.to_i
@@ -10,13 +12,12 @@
aruba.config.exit_timeout = original_aruba_timeout
end
def create_cached_app(name)
job = 'Cached Rails app generation'
- rails_new_command = "bundle exec rails new #{name} --skip-test-unit --skip-bundle --database mysql"
puts "#{job} started (in #{Dir.pwd})"
- system(rails_new_command) or raise "#{job} failed"
+ Katapult::BinaryUtil.create_rails_app(name)
puts "#{job} done."
end
def ensure_bundled(path)
Dir.chdir(path) do