Sha256: c6afb1b5cebdaf5b03c4dc90a5fa37cf2e445aa97ade2c4e708c77a7aa8860da
Contents?: true
Size: 506 Bytes
Versions: 1
Compression:
Stored size: 506 Bytes
Contents
require 'test_helper' require_relative '../lib/crafti' class DSLTest < Minitest::Test def template_file Pathname.new(__dir__).expand_path.join("assets/app_template.rb") end def test_file_evaluation file = Crafti::FileReader.new(template_file) file.evaluate assert File.exists?("appname/.git") assert File.exists?("appname") cleanup("appname") end def cleanup(application_name) FileUtils.rm_rf(application_name) refute File.exists?(application_name) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crafti-0.0.19 | test/dsl_test.rb |