Skip to content

Commit

Permalink
Update command tests to not require git repo (#162)
Browse files Browse the repository at this point in the history
Signed-off-by: Phil Dibowitz <[email protected]>
  • Loading branch information
jaymzh authored Apr 26, 2024
1 parent 8722778 commit d1a2b25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/commands_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d1a2b25

Please sign in to comment.