Sha256: 5f3320f407335174ab7d82aa83d625a3f5a879a3ae165cd04bc28a227df85a8d
Contents?: true
Size: 432 Bytes
Versions: 16
Compression:
Stored size: 432 Bytes
Contents
require 'test/unit' require 'yaml' require 'rubygems/specification' class BuildGemTest < Test::Unit::TestCase def test_build_gem data = File.read(File.join(File.dirname(__FILE__), '..', 'capistrano_mailer.gemspec')) spec = nil if data !~ %r{!ruby/object:Gem::Specification} Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join else spec = YAML.load(data) end assert spec.validate end end
Version data entries
16 entries across 16 versions & 2 rubygems