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

Version Path
capistrano_mailer-3.3.0 test/build_gem_test.rb
capistrano_mailer-4.1.0.pre1 test/build_gem_test.rb
capistrano_mailer-4.0.2 test/build_gem_test.rb
capistrano_mailer-3.2.5 test/build_gem_test.rb
capistrano_mailer-3.2.4 test/build_gem_test.rb
capistrano_mailer-3.2.3 test/build_gem_test.rb
capistrano_mailer-3.2.2 test/build_gem_test.rb
capistrano_mailer-3.2.1 test/build_gem_test.rb
textgoeshere-capistrano_mailer-3.2.0 test/build_gem_test.rb
capistrano_mailer-3.1.10 test/build_gem_test.rb
capistrano_mailer-3.1.9 test/build_gem_test.rb
capistrano_mailer-3.1.8 test/build_gem_test.rb
capistrano_mailer-3.1.7 test/build_gem_test.rb
capistrano_mailer-3.1.6 test/build_gem_test.rb
capistrano_mailer-3.1.5 test/build_gem_test.rb
capistrano_mailer-3.1.4 test/build_gem_test.rb