Sha256: 0681cfb09efce8798c2006af9d4929e5e3a20a608d857b12ef86f58261a6bfee

Contents?: true

Size: 1.03 KB

Versions: 15

Compression:

Stored size: 1.03 KB

Contents

require 'test_helper'

class Jeweler
  module Commands
    class TestReleaseToGemcutter < Test::Unit::TestCase
      def self.subject
        Jeweler::Commands::ReleaseToGemcutter.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 gemcutter" 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::ReleaseToGemcutter.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

15 entries across 15 versions & 3 rubygems

Version Path
technicalpickles-jeweler-1.2.1 test/jeweler/commands/test_release_to_gemcutter.rb
gemrage-1.0.0 vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_release_to_gemcutter.rb
gemrage-0.4.1 vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_release_to_gemcutter.rb
gemrage-0.4.0 vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_release_to_gemcutter.rb
gemrage-0.3.2 vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_release_to_gemcutter.rb
gemrage-0.3.1 vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_release_to_gemcutter.rb
gemrage-0.3.0 vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_release_to_gemcutter.rb
gemrage-0.2.0 vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_release_to_gemcutter.rb
gemrage-0.1.2 vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_release_to_gemcutter.rb
gemrage-0.1.1 vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_release_to_gemcutter.rb
gemrage-0.1.0 vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_release_to_gemcutter.rb
gemrage-0.0.0 vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_release_to_gemcutter.rb
jeweler-1.4.0 test/jeweler/commands/test_release_to_gemcutter.rb
jeweler-1.3.0 test/jeweler/commands/test_release_to_gemcutter.rb
jeweler-1.2.1 test/jeweler/commands/test_release_to_gemcutter.rb