Sha256: 9f39bab866a1f79ca323f58852ab077a33a5ce9163e5621ad6e15720d8a7a8a0

Contents?: true

Size: 663 Bytes

Versions: 29

Compression:

Stored size: 663 Bytes

Contents

require "spec_helper"
require "octopolo/scripts/new_deployable"

module Octopolo
  module Scripts
    describe NewDeployable do
      subject { NewDeployable.new }

      context "#execute" do
        it "delegates the work to DatedBranchCreator with default delete flag" do
          DatedBranchCreator.should_receive(:perform).with(Git::DEPLOYABLE_PREFIX, false)
          subject.execute
        end
        it "delegates the work to DatedBranchCreator with delete flag" do
          DatedBranchCreator.should_receive(:perform).with(Git::DEPLOYABLE_PREFIX, true)
          subject.execute(:delete_old_branches => true)
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
octopolo-1.12.0 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.11.4 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.11.3 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.11.1 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.11.0 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.9.0 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.8.1 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.8.0 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.7.1 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.7.0 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.6.0 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.5.3 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.5.2 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.5.1 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.5.0 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.4.0 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.3.0 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.2.1 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.2.0 spec/octopolo/scripts/new_deployable_spec.rb
octopolo-1.1.1 spec/octopolo/scripts/new_deployable_spec.rb