Sha256: 1aa4bc886a9ed7c5900d3408961c83708752d5d5aaf0af42a84ee159d8797429
Contents?: true
Size: 1.03 KB
Versions: 17
Compression:
Stored size: 1.03 KB
Contents
require 'test_helper' class Juwelier module Commands class TestReleaseToRubygems < Test::Unit::TestCase def self.subject Juwelier::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 juwelier" do setup do @command = Juwelier::Commands::ReleaseToRubygems.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