Sha256: bc141e450e619b19e75a117e383856f26860d61481f1871e61dacea460d09469
Contents?: true
Size: 585 Bytes
Versions: 12
Compression:
Stored size: 585 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' require 'git_helper' 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
12 entries across 12 versions & 1 rubygems