Sha256: 83c749b890c386405494316062e9127ce641541a69404340db7e20af4f1ca738

Contents?: true

Size: 918 Bytes

Versions: 17

Compression:

Stored size: 918 Bytes

Contents

require 'test_helper'

class Juwelier
  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 juwelier" do
        setup do
          @command = Juwelier::Commands::InstallGem.build_for(@juwelier)
        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

17 entries across 17 versions & 1 rubygems

Version Path
juwelier-2.4.9 test/juwelier/commands/test_install_gem.rb
juwelier-2.4.7 test/juwelier/commands/test_install_gem.rb
juwelier-2.4.6 test/juwelier/commands/test_install_gem.rb
juwelier-2.4.5 test/juwelier/commands/test_install_gem.rb
juwelier-2.4.4 test/juwelier/commands/test_install_gem.rb
juwelier-2.4.1 test/juwelier/commands/test_install_gem.rb
juwelier-2.4.0 test/juwelier/commands/test_install_gem.rb
juwelier-2.3.6 test/juwelier/commands/test_install_gem.rb
juwelier-2.3.4 test/juwelier/commands/test_install_gem.rb
juwelier-2.3.2 test/juwelier/commands/test_install_gem.rb
juwelier-2.3.0 test/juwelier/commands/test_install_gem.rb
juwelier-2.2.3 test/juwelier/commands/test_install_gem.rb
juwelier-2.2.1 test/juwelier/commands/test_install_gem.rb
juwelier-2.1.3 test/juwelier/commands/test_install_gem.rb
juwelier-2.1.2 test/juwelier/commands/test_install_gem.rb
juwelier-2.1.1 test/juwelier/commands/test_install_gem.rb
juwelier-2.1.0 test/juwelier/commands/test_install_gem.rb