diff --git a/spec/commands_spec.rb b/spec/commands_spec.rb index 0e071af..4c5be22 100644 --- a/spec/commands_spec.rb +++ b/spec/commands_spec.rb @@ -166,6 +166,7 @@ sj = SugarJar::Commands.new( { 'no_change' => true, 'feature_prefix' => 'someuser/' }, ) + expect(sj).to receive(:all_local_branches).and_return(['/nonexistent']) expect(sj.send(:fprefix, 'test')).to eq('someuser/test') end