Sha256: 246ce6ec77cdb84c3d46701e6a12f0153000808a87352ca337108579569aa9ee
Contents?: true
Size: 887 Bytes
Versions: 1
Compression:
Stored size: 887 Bytes
Contents
module Features APP_NAME = "arkenstone_test" def app_name APP_NAME end def run_arkenstone(args = nil) Dir.chdir(Dir.tmpdir) do `#{arkenstone_bin} #{args} #{project_path}` end end def remove_dummy_app FileUtils.rm_rf(project_path) end def project_path File.join(Dir.tmpdir, APP_NAME) end def models_path "#{project_path}/app/models" end def controllers_path "#{project_path}/app/controllers" end def config_path "#{project_path}/config" end def lib_path "#{project_path}/lib" end def file_contents(file) File.open(file, &:read) end def project_file_exist?(file) Dir.chdir(project_path) do File.exist?(file) end end private def root_path File.expand_path("../../../../", __FILE__) end def arkenstone_bin File.join(root_path, "bin", "arkenstone") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
arkenstone-0.1.0 | spec/support/features/new_project.rb |