Sha256: a58cc8128d86561fa10de19dd89ff814b06ed12ff2f226c092cf20d22cb15372

Contents?: true

Size: 613 Bytes

Versions: 1

Compression:

Stored size: 613 Bytes

Contents

require_relative '../../lib/git_helper/forget_local_commits.rb'

describe GitHelper::ForgetLocalCommits do
  let(:local_code) { double(:local_code, forget_local_commits: :commit) }

  subject { GitHelper::ForgetLocalCommits.new }

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

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