Sha256: 8c61ecf4b9cceed6dc176bf61d98c13ef3c76413c0a132cc408bb820e81f23da
Contents?: true
Size: 788 Bytes
Versions: 2
Compression:
Stored size: 788 Bytes
Contents
require 'rubygems' require 'test_belt' require 'test/env' class Test::Unit::TestCase TMP_PATH = File.expand_path("#{File.dirname(__FILE__)}/../tmp") class << self def should_generate_name_set(name_set) name_set.variations.each do |variation| [:name, :module_name, :ruby_name].each do |name_type| should "know its :#{name_type} given '#{variation}'" do the_gem = GGem::Gem.new(TMP_PATH, variation) assert_equal name_set.send(name_type), the_gem.send(name_type) end end end end def should_create_paths(*paths) paths.flatten.each do |path| should "create the path '#{path}'" do assert File.exists?(path), "'#{path}' does not exist" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ggem-1.0.1 | test/helper.rb |
ggem-1.0.0 | test/helper.rb |