Sha256: cb4ec42bf409a17c052c10f06ec5746c9f1c20a4e00d3699a5950aebe41a2562
Contents?: true
Size: 684 Bytes
Versions: 10
Compression:
Stored size: 684 Bytes
Contents
require 'spec_helper' require 'rake_context' require 'rubygems/tasks/push' describe Gem::Tasks::Push do describe "#push" do include_context "rake" let(:path) { 'pkg/foo-1.2.3.gem' } context "defaults" do it "should use `gem push`" do subject.should_receive(:run).with('gem', 'push', path) subject.push(path) end end context "with custom :host" do let(:host) { 'internal.company.com' } subject { described_class.new(:host => host) } it "should include the --host option" do subject.should_receive(:run).with('gem', 'push', path, '--host', host) subject.push(path) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems