Sha256: ffa215657ca69449fdc65b1b7cbb450066449600be66a2833dc2720ddd2534d4
Contents?: true
Size: 511 Bytes
Versions: 4
Compression:
Stored size: 511 Bytes
Contents
module FoundationRailsTestHelpers def create_dummy_app FileUtils.cd(tmp_path) do %x(rails new dummy --skip-active-record --skip-test-unit --skip-spring) end end def remove_dummy_app FileUtils.rm_rf(dummy_app_path) end def install_foundation FileUtils.cd(dummy_app_path) do %x(rails g foundation:install -f 2>&1) end end def dummy_app_path File.join(tmp_path, 'dummy') end def tmp_path @tmp_path ||= File.join(File.dirname(__FILE__), '..') end end
Version data entries
4 entries across 4 versions & 1 rubygems