Sha256: 68e3c8568b36f85512abd8a4f495f03c5d8a21e0421c9e337a504af599c7ab55
Contents?: true
Size: 889 Bytes
Versions: 4
Compression:
Stored size: 889 Bytes
Contents
require "assert" require "name_set" require "ggem/gem" module GGem class GGemTest < Assert::Context desc "GGem::Gem" end class RootPathTest < GGemTest should "know its root path" do assert_equal TMP_PATH, Gem.new(TMP_PATH, 'a-gem').root_path end end class NameTest < GGemTest [ GGem::NameSet::Simple, GGem::NameSet::Underscored, GGem::NameSet::HyphenatedOther ].each do |ns| should_generate_name_set(ns.new) end end class SaveTest < GGemTest NS = GGem::NameSet::Simple.new desc "after it's been saved" setup_once do FileUtils.mkdir_p(TMP_PATH) Gem.new(TMP_PATH, NS.variations.first).save end teardown_once do FileUtils.rm_rf(TMP_PATH) end should_create_paths((NS.expected_folders + NS.expected_files).collect do |p| File.join(TMP_PATH, NS.name, p) end) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ggem-1.1.4 | test/gem_test.rb |
ggem-1.1.3 | test/gem_test.rb |
ggem-1.1.2 | test/gem_test.rb |
ggem-1.1.1 | test/gem_test.rb |