Sha256: a644d382fc7b99edea198c5001bd9e977af722ac1e14ba699e9a528217aebef0
Contents?: true
Size: 886 Bytes
Versions: 6
Compression:
Stored size: 886 Bytes
Contents
require 'spec_helper' require 'capistrano/notifier' require 'capistrano/notifier/base' describe Capistrano::Notifier::Base do let(:configuration) { Capistrano::Configuration.new } subject { described_class.new configuration } describe "#branch" do it "defaults to master" do subject.send(:branch).should == 'master' end context "when a branch is specified" do before :each do configuration.load { set :branch, 'foo' } end it "uses the specified branch" do subject.send(:branch).should == 'foo' end end end describe "#git_*" do context "on initial deploy" do it { subject.send(:git_log).should be_nil } it { subject.send(:git_range).should be_nil } it { subject.send(:git_current_revision).should be_nil } it { subject.send(:git_previous_revision).should be_nil } end end end
Version data entries
6 entries across 6 versions & 1 rubygems