Sha256: 3d77d44bce254b56322384b88b0c38369c5b81a78a515a0fd7d3ee155cac28f2

Contents?: true

Size: 579 Bytes

Versions: 1

Compression:

Stored size: 579 Bytes

Contents

require_relative '../../lib/git_helper/clean_branches.rb'

describe GitHelper::CleanBranches do
  let(:local_code) { double(:local_code, clean_branches: :commit) }

  subject { GitHelper::CleanBranches.new }

  it 'should call GitHelper::LocalCode' do
    expect(GitHelper::LocalCode).to receive(:new).and_return(local_code)
    subject.execute
  end

  it 'should call the clean_branches method from the local code class' do
    allow(GitHelper::LocalCode).to receive(:new).and_return(local_code)
    expect(local_code).to receive(:clean_branches)
    subject.execute
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git_helper-2.0.0 spec/git_helper/clean_branches_spec.rb