Sha256: 68d454c3e8ed7ababac6b762098a8575bdb1d8f8eb64e0ff8c6f7cc184f4e73c

Contents?: true

Size: 668 Bytes

Versions: 22

Compression:

Stored size: 668 Bytes

Contents

class Nanoc::GemTest < Nanoc::TestCase
  def setup
    super
    FileUtils.cd(@orig_wd)
  end

  def test_build
    # Require clean environment
    Dir['nanoc-*.gem'].each { |f| FileUtils.rm(f) }

    # Build
    files_before = Set.new Dir['**/*']
    stdout = StringIO.new
    stderr = StringIO.new
    piper = Nanoc::Extra::Piper.new(stdout: stdout, stderr: stderr)
    piper.run(%w( gem build nanoc.gemspec ), nil)
    files_after = Set.new Dir['**/*']

    # Check new files
    diff = files_after - files_before
    assert_equal 1, diff.size
    assert_match(/^nanoc-.*\.gem$/, diff.to_a[0])
  ensure
    Dir['nanoc-*.gem'].each { |f| FileUtils.rm(f) }
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
nanoc-4.2.1 test/test_gem.rb
nanoc-4.2.0 test/test_gem.rb
nanoc-4.1.6 test/test_gem.rb
nanoc-4.2.0b1 test/test_gem.rb
nanoc-4.1.5 test/test_gem.rb
nanoc-4.1.4 test/test_gem.rb
nanoc-4.1.3 test/test_gem.rb
nanoc-4.1.2 test/test_gem.rb
nanoc-4.1.1 test/test_gem.rb
nanoc-4.1.0 test/test_gem.rb
nanoc-4.1.0rc2 test/test_gem.rb
nanoc-4.1.0rc1 test/test_gem.rb
nanoc-4.1.0b1 test/test_gem.rb
nanoc-4.1.0a1 test/test_gem.rb
nanoc-4.0.2 test/test_gem.rb
nanoc-4.0.1 test/test_gem.rb
nanoc-4.0.0 test/test_gem.rb
nanoc-4.0.0rc3 test/test_gem.rb
nanoc-4.0.0rc2 test/test_gem.rb
nanoc-4.0.0rc1 test/test_gem.rb