Sha256: c6ac91fcbc10f67183fae51a8f5a48896c97e4c48a3478a9770749d9a42641a5
Contents?: true
Size: 603 Bytes
Versions: 12
Compression:
Stored size: 603 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' require 'git_helper' describe GitHelper::CheckoutDefault do let(:local_code) { double(:local_code, checkout_default: :done) } subject { GitHelper::CheckoutDefault.new } it 'should call GitHelper::LocalCode' do expect(GitHelper::LocalCode).to receive(:new).and_return(local_code) subject.execute end it 'should call the checkout_default method from the local code class' do allow(GitHelper::LocalCode).to receive(:new).and_return(local_code) expect(local_code).to receive(:checkout_default) subject.execute end end
Version data entries
12 entries across 12 versions & 1 rubygems