Sha256: ecb594f9dd41be0cd83eff2d656a2634db556f87b9f0834f60c75f8d8a7dc142

Contents?: true

Size: 442 Bytes

Versions: 6

Compression:

Stored size: 442 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_railsless.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

6 entries across 6 versions & 1 rubygems

Version Path
capistrano_mailer_railsless-3.2.11 test/build_gem_test.rb
capistrano_mailer_railsless-3.2.10 test/build_gem_test.rb
capistrano_mailer_railsless-3.2.9 test/build_gem_test.rb
capistrano_mailer_railsless-3.2.8 test/build_gem_test.rb
capistrano_mailer_railsless-3.2.7 test/build_gem_test.rb
capistrano_mailer_railsless-3.2.6 test/build_gem_test.rb