File: test_hoe_publish.rb

package info (click to toggle)
ruby-hoe 3.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 440 kB
  • sloc: ruby: 1,886; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 559 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
require 'rubygems'
require 'minitest/autorun'
require 'hoe'

class TestHoePublish < MiniTest::Unit::TestCase
  def setup
    @hoe = Hoe.spec 'blah' do
      self.version = '1.0'

      developer 'author', ''
    end
  end

  def test_make_rdoc_cmd
    expected = %W[
                #{Gem.bin_wrapper "rdoc"}
                --title blah-1.0\ Documentation
                -o doc
                --main README.txt
                lib
                History.txt Manifest.txt README.txt
               ]
    assert_equal expected, @hoe.make_rdoc_cmd
  end
end