Sha256: 2d51d8ca57c1f477e2716fde98d2e56746dd686e84e86efe5959d024da751964

Contents?: true

Size: 564 Bytes

Versions: 12

Compression:

Stored size: 564 Bytes

Contents

require 'spec_helper'
require 'git_helper'

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

12 entries across 12 versions & 1 rubygems

Version Path
git_helper-3.3.1 spec/git_helper/clean_branches_spec.rb
git_helper-3.3.0 spec/git_helper/clean_branches_spec.rb
git_helper-3.2.2 spec/git_helper/clean_branches_spec.rb
git_helper-3.2.1 spec/git_helper/clean_branches_spec.rb
git_helper-3.2.0 spec/git_helper/clean_branches_spec.rb
git_helper-3.1.3 spec/git_helper/clean_branches_spec.rb
git_helper-3.1.2 spec/git_helper/clean_branches_spec.rb
git_helper-3.1.0 spec/git_helper/clean_branches_spec.rb
git_helper-3.0.1 spec/git_helper/clean_branches_spec.rb
git_helper-3.0.0 spec/git_helper/clean_branches_spec.rb
git_helper-2.0.2 spec/git_helper/clean_branches_spec.rb
git_helper-2.0.1 spec/git_helper/clean_branches_spec.rb