Skip to content

Commit

Permalink
test[2]
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Jan 9, 2025
1 parent 7d1a5b1 commit 09aac33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/cli_helpers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,14 @@

it "executes the setup command successfully" do
allow(FileUtils).to receive(:rm_rf)
allow(FileUtils).to receive(:chmod)
allow(self).to receive(:system).and_return(true)
expect(do_setup(options_manager)).to be_truthy
end

it "raises an error if the setup command fails" do
allow(FileUtils).to receive(:rm_rf)
allow(FileUtils).to receive(:chmod)
allow(self).to receive(:system).and_return(false)
expect { do_setup(options_manager) }.to raise_error(Tebako::Error)
end
Expand Down

0 comments on commit 09aac33

Please sign in to comment.