Sha256: 8cbee64a50385fd320d46ae61dd8a0d6a389db262c1a8444224abd38b21716a6

Contents?: true

Size: 914 Bytes

Versions: 114

Compression:

Stored size: 914 Bytes

Contents

require 'test_helper'

class Jeweler
  module Commands
    class TestInstallGem < Test::Unit::TestCase
      rubyforge_command_context "running" do
        setup do
          stub(@gemspec_helper).gem_path { 'pkg/zomg-1.1.1.gem' } 
          stub(@command).gem_command { 'ruby -S gem' }
          stub(@command).sh

          @command.run
        end

        should "call sh with gem install" do
          assert_received(@command) {|command| command.sh 'ruby -S gem install pkg/zomg-1.1.1.gem' }
        end
      end

      build_command_context "build for jeweler" do
        setup do
          @command = Jeweler::Commands::InstallGem.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
jeweler-2.1.1 test/jeweler/commands/test_install_gem.rb
jeweler-2.0.1 test/jeweler/commands/test_install_gem.rb
jeweler-2.0.0 test/jeweler/commands/test_install_gem.rb
jeweler-1.8.8 test/jeweler/commands/test_install_gem.rb
jeweler-1.8.7 test/jeweler/commands/test_install_gem.rb
jeweler-1.8.6 test/jeweler/commands/test_install_gem.rb
jeweler-1.8.5 test/jeweler/commands/test_install_gem.rb
devise_sociable-0.1.0 vendor/bundle/gems/jeweler-1.8.4/test/jeweler/commands/test_install_gem.rb
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/jeweler/commands/test_install_gem.rb
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/jeweler/commands/test_install_gem.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/jeweler/commands/test_install_gem.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/jeweler/commands/test_install_gem.rb
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/jeweler/commands/test_install_gem.rb
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/jeweler/commands/test_install_gem.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/jeweler/commands/test_install_gem.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/jeweler/commands/test_install_gem.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/jeweler/commands/test_install_gem.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/jeweler/commands/test_install_gem.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/jeweler/commands/test_install_gem.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/jeweler/commands/test_install_gem.rb