Sha256: 5792a20fa82ba42aba4dbe61163bc0a58b252efa0f22ef573e7cf144c7855c39
Contents?: true
Size: 1.08 KB
Versions: 4
Compression:
Stored size: 1.08 KB
Contents
require 'assert' require 'test/support/name_set' require 'ggem' module GGem class BaseTests < Assert::Context desc "GGem" NS_SIMPLE = GGem::NameSet::Simple NS_UNDER = GGem::NameSet::Underscored NS_HYPHEN = GGem::NameSet::HyphenatedOther [ NS_SIMPLE, NS_UNDER, NS_HYPHEN ].each do |ns| should generate_name_set(ns.new) end end class SaveTests < BaseTests desc "when saving gems" setup_once do FileUtils.rm_rf(TMP_PATH) FileUtils.mkdir_p(TMP_PATH) GGem::Gem.new(TMP_PATH, NS_SIMPLE.new.variations.first).save! GGem::Gem.new(TMP_PATH, NS_UNDER.new.variations.first).save! GGem::Gem.new(TMP_PATH, NS_HYPHEN.new.variations.first).save! end teardown_once do FileUtils.rm_rf(TMP_PATH) end should create_paths(NS_SIMPLE.new) should create_paths(NS_UNDER.new) should create_paths(NS_HYPHEN.new) should "init a git repo in the gem path" do exp_path = File.join(TMP_PATH, NS_SIMPLE.new.name, '.git') assert File.exists?(exp_path), ".git repo config doesn't exist" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ggem-1.4.3 | test/system/ggem_tests.rb |
ggem-1.4.2 | test/system/ggem_tests.rb |
ggem-1.4.1 | test/system/ggem_tests.rb |
ggem-1.4.0 | test/system/ggem_tests.rb |