Sha256: e6737d2c5dc394143c3fbb164eb705016cb79f41b92faf3161d820f3fdf0bde5
Contents?: true
Size: 805 Bytes
Versions: 5
Compression:
Stored size: 805 Bytes
Contents
require 'spec_helper' require 'rake_context' require 'rubygems/tasks/scm/push' describe Gem::Tasks::SCM::Push do describe "#push!" do context "git" do it "should run `git push --tags`" do subject.project.stub!(:scm).and_return(:git) subject.should_receive(:run).with('git', 'push') subject.should_receive(:run).with('git', 'push', '--tags') subject.push! end end context "hg" do it "should run `hg push`" do subject.project.stub!(:scm).and_return(:hg) subject.should_receive(:run).with('hg', 'push') subject.push! end end context "otherwise" do it "should return true" do subject.project.stub!(:scm).and_return(:svn) subject.push!.should == true end end end end
Version data entries
5 entries across 5 versions & 1 rubygems