Sha256: 80c0c8bb5057192a4f9312c00dcf8440d7eb8383de8334f3ce1e5ba8812b628c

Contents?: true

Size: 1.37 KB

Versions: 15

Compression:

Stored size: 1.37 KB

Contents

require 'test_helper'

require 'rake'
class TestTasks < Test::Unit::TestCase
  include Rake

  context 'instantiating Jeweler::Tasks' do
    setup do
      Task.clear

      @jt = Jeweler::Tasks.new {}
    end

    should 'assign @gemspec' do
      assert_not_nil @jt.gemspec
    end

    should 'assign @jeweler' do
      assert_not_nil @jt.jeweler
    end

    should 'yield the gemspec instance' do
      spec = nil; Jeweler::Tasks.new { |s| spec = s }
      assert_not_nil spec
    end

    should 'set the gemspec defaults before yielding it' do
      Jeweler::Tasks.new do |s|
        assert !s.files.empty?
      end
    end

    should 'define tasks' do
      assert Task.task_defined?(:build)
      assert Task.task_defined?(:install)
      assert Task.task_defined?(:gemspec)
      assert Task.task_defined?(:build)
      assert Task.task_defined?(:install)
      assert Task.task_defined?(:'gemspec:validate')
      assert Task.task_defined?(:'gemspec:generate')
      assert Task.task_defined?(:version)
      assert Task.task_defined?(:'version:write')
      assert Task.task_defined?(:'version:bump:major')
      assert Task.task_defined?(:'version:bump:minor')
      assert Task.task_defined?(:'version:bump:patch')
      assert Task.task_defined?(:'release')
      assert Task.task_defined?(:'rubyforge:release:gem')
      assert Task.task_defined?(:'rubyforge:setup')
    end
  end
end

Version data entries

15 entries across 15 versions & 6 rubygems

Version Path
gohanlonllc-jeweler-0.11.1.20090513153819 test/test_tasks.rb
gohanlonllc-jeweler-1.0.0.20080513000000 test/test_tasks.rb
gohanlonllc-jeweler-1.0.0.20090513153819 test/test_tasks.rb
monkeyhelper-jeweler-1.0.1 test/test_tasks.rb
namelessjon-jeweler-1.0.1 test/test_tasks.rb
pivotal-jeweler-1.0.1.1 test/test_tasks.rb
technicalpickles-jeweler-0.11.0 test/test_tasks.rb
technicalpickles-jeweler-1.0.0 test/test_tasks.rb
technicalpickles-jeweler-1.0.1 test/test_tasks.rb
technicalpickles-jeweler-1.0.2 test/test_tasks.rb
jeweler-1.0.2 test/test_tasks.rb
jeweler-1.0.1 test/test_tasks.rb
jeweler-1.0.0 test/test_tasks.rb
jeweler-0.11.1 test/test_tasks.rb
jeweler-0.11.0 test/test_tasks.rb