Sha256: 0b07358e85e1e246c6d3a6bcc5f687cce5eb2d50591f878323f3f37ca4bdfada

Contents?: true

Size: 1.03 KB

Versions: 114

Compression:

Stored size: 1.03 KB

Contents

require 'test_helper'

class Jeweler
  module Commands
    class TestReleaseToRubygems < Test::Unit::TestCase
      def self.subject
        Jeweler::Commands::ReleaseToRubygems.new
      end

      gemcutter_command_context "rubyforge_project is defined in gemspec and package exists on rubyforge" do
        setup do
          stub(@gemspec_helper).gem_path {'pkg/zomg-1.2.3.gem'}
          stub(@command).sh
          @command.run
        end

        should "push to rubygems" do
          push_command = "gem push #{@gemspec_helper.gem_path}"
          assert_received(@command) { |command| command.sh(push_command) }
        end
      end

      build_command_context "build for jeweler" do
        setup do
          @command = Jeweler::Commands::ReleaseToRubygems.build_for(@jeweler)
        end

        should "assign gemspec helper" do
          assert_equal @gemspec_helper, @command.gemspec_helper
        end

        should "assign output" do
          assert_equal @output, @command.output
        end
      end
      
    end
  end
end

Version data entries

114 entries across 60 versions & 6 rubygems

Version Path
dirty_history-0.6.5 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.6.5 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/jeweler/commands/test_release_to_gemcutter.rb
jeweler-1.8.4 test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.5.3 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.5.3 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/jeweler/commands/test_release_to_gemcutter.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/jeweler/commands/test_release_to_gemcutter.rb