Sha256: 040af004ba2a164b77c8f94099eac60638cf5ceefe2a5e7970302b1c0e3d684d
Contents?: true
Size: 589 Bytes
Versions: 1
Compression:
Stored size: 589 Bytes
Contents
require_relative '../../lib/git_helper/checkout_default.rb' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
git_helper-2.0.0 | spec/git_helper/checkout_default_spec.rb |