Skip to content

Commit

Permalink
Stub out the actual install calls in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Dec 30, 2014
1 parent 7d012fb commit 0690a0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/install_command_spec.rb
Expand Up @@ -9,6 +9,9 @@

context "when a Brewfile is found" do
it "does not raise an error" do
Brewdler::BrewInstaller.stub(:install).and_return(true)
Brewdler::CaskInstaller.stub(:install).and_return(true)

File.stub(:read).and_return("tap 'phinze/cask'\nbrew 'git'\ncask 'google-chrome'")
expect { Brewdler::Commands::Install.run }.to_not raise_error

Expand Down

0 comments on commit 0690a0f

Please sign in to comment.