Sha256: 49e8287ff60ab499be43ae78a4fc7daf62772f8f307ab14a322fde2eb5fd53b8
Contents?: true
Size: 567 Bytes
Versions: 1
Compression:
Stored size: 567 Bytes
Contents
require_relative '../../lib/git_helper/empty_commit.rb' describe GitHelper::EmptyCommit do let(:local_code) { double(:local_code, empty_commit: :commit) } subject { GitHelper::EmptyCommit.new } it 'should call GitHelper::LocalCode' do expect(GitHelper::LocalCode).to receive(:new).and_return(local_code) subject.execute end it 'should call the empty_commit method from the local code class' do allow(GitHelper::LocalCode).to receive(:new).and_return(local_code) expect(local_code).to receive(:empty_commit) subject.execute end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
git_helper-2.0.0 | spec/git_helper/empty_commit_spec.rb |