Sha256: c2179ff3ac7f97b43e4af4c5e234dd9300082c594ccb2ec8309773fd78cc4ad1

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 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 do |s|
      end
    end

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

    should 'assign @jeweler' do
      assert_not_nil @jt.jeweler
    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

4 entries across 4 versions & 2 rubygems

Version Path
technicalpickles-jeweler-0.10.0 test/test_tasks.rb
technicalpickles-jeweler-0.10.1 test/test_tasks.rb
technicalpickles-jeweler-0.10.2 test/test_tasks.rb
jeweler-0.10.2 test/test_tasks.rb