Sha256: ffcad62cc16b0b282710881007e11e154d6ab8f45cd1c7637ce754c07920a2a5
Contents?: true
Size: 592 Bytes
Versions: 12
Compression:
Stored size: 592 Bytes
Contents
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