Sha256: 00e796cee965e0a561953990f577442cdadbda3257d6e30a836192d194271f15
Contents?: true
Size: 748 Bytes
Versions: 5
Compression:
Stored size: 748 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', '--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