Sha256: 0c89ac17c77d147973e753d16b4d0d52437ad91532437f4ec036fcdcb30ad7e0

Contents?: true

Size: 623 Bytes

Versions: 12

Compression:

Stored size: 623 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'
require 'git_helper'

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

12 entries across 12 versions & 1 rubygems

Version Path
git_helper-3.6.1 spec/git_helper/forget_local_commits_spec.rb
git_helper-3.6.0 spec/git_helper/forget_local_commits_spec.rb
git_helper-3.5.1 spec/git_helper/forget_local_commits_spec.rb
git_helper-3.5.0 spec/git_helper/forget_local_commits_spec.rb
git_helper-3.4.1 spec/git_helper/forget_local_commits_spec.rb
git_helper-3.4.0 spec/git_helper/forget_local_commits_spec.rb
git_helper-3.3.7 spec/git_helper/forget_local_commits_spec.rb
git_helper-3.3.6 spec/git_helper/forget_local_commits_spec.rb
git_helper-3.3.5 spec/git_helper/forget_local_commits_spec.rb
git_helper-3.3.4 spec/git_helper/forget_local_commits_spec.rb
git_helper-3.3.3 spec/git_helper/forget_local_commits_spec.rb
git_helper-3.3.2 spec/git_helper/forget_local_commits_spec.rb