spec/unit/capistrano/template/helpers/paths_lookup_spec.rb in capistrano-template-0.0.3 vs spec/unit/capistrano/template/helpers/paths_lookup_spec.rb in capistrano-template-0.0.4

- old
+ new

@@ -13,15 +13,15 @@ let(:template_name) { 'my_template' } describe '#template_exists?' do it 'returns true when a template file exists' do - subject.stub(existence_check: true) + allow(subject).to receive(:existence_check).and_return(true) expect(subject.template_exists?(template_name)).to be_truthy end it 'returns false when a template does not file exists' do - subject.stub(existence_check: false) + allow(subject).to receive(:existence_check).and_return(false) expect(subject.template_exists?(template_name)).to be_falsy end it 'checks for every possible path existence' do expect(subject).to receive(:existence_check).exactly(lookup_paths.count * 2).times