Sha256: e66c7cda83b3b6dd537077d0ba8a1ee301a4e5bb7a1f196bd8d1a6df006cebfc

Contents?: true

Size: 672 Bytes

Versions: 29

Compression:

Stored size: 672 Bytes

Contents

require "spec_helper"
require "octopolo/scripts/new_staging"

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

      context "#execute" do
        it "delegates to DatedBranchCreator to create the branch with default delete flag" do
          DatedBranchCreator.should_receive(:perform).with(Git::STAGING_PREFIX, false)
          subject.execute
        end
        it "delegates to DatedBranchCreator to create the branch with delete flag" do
          DatedBranchCreator.should_receive(:perform).with(Git::STAGING_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.1.0 spec/octopolo/scripts/new_staging_spec.rb
octopolo-1.0.2 spec/octopolo/scripts/new_staging_spec.rb
octopolo-1.0.1 spec/octopolo/scripts/new_staging_spec.rb
octopolo-1.0.0 spec/octopolo/scripts/new_staging_spec.rb
octopolo-0.4.1 spec/octopolo/scripts/new_staging_spec.rb
octopolo-0.4.0 spec/octopolo/scripts/new_staging_spec.rb
octopolo-0.3.6 spec/octopolo/scripts/new_staging_spec.rb
octopolo-0.3.5 spec/octopolo/scripts/new_staging_spec.rb
octopolo-0.3.4 spec/octopolo/scripts/new_staging_spec.rb