Sha256: 7fb7ea364be34fa5edec6c49e31cf4c77d501b23fffd4ed12702f8330d822a8c
Contents?: true
Size: 904 Bytes
Versions: 1
Compression:
Stored size: 904 Bytes
Contents
require "test_belt" require "name_set" module GGem class GGemTest < Test::Unit::TestCase include TestBelt context "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 context "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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ggem-1.1.0 | test/gem_test.rb |