Permalink
Browse files

Make tests pass

  • Loading branch information...
1 parent 69ce8a9 commit 322b24866382675e9db47475dca742e156f93554 @stewart stewart committed Dec 17, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/lib/gitnesse/dependencies_check_test.rb
@@ -32,12 +32,12 @@
let(:method) { lambda { Gitnesse::Dependencies.check_git } }
describe "when git is not installed" do
- before { Kernel.expects(:system).with("git --version").returns(false) }
+ before { Kernel.expects(:system).with("git --version &> /dev/null").returns(false) }
it { method.must_raise(Gitnesse::Dependencies::NoGitError) }
end
describe "when git is installed" do
- before { Kernel.expects(:system).with("git --version").returns(true) }
+ before { Kernel.expects(:system).with("git --version &> /dev/null").returns(true) }
it { method.call.must_be_nil }
end
end
@@ -46,12 +46,12 @@
let(:method) { lambda { Gitnesse::Dependencies.check_cucumber } }
describe "when cucumber is not installed" do
- before { Kernel.expects(:system).with("cucumber --version").returns(false) }
+ before { Kernel.expects(:system).with("cucumber --version &> /dev/null").returns(false) }
it { method.must_raise(Gitnesse::Dependencies::NoCucumberError) }
end
describe "when cucumber is installed" do
- before { Kernel.expects(:system).with("cucumber --version").returns(true) }
+ before { Kernel.expects(:system).with("cucumber --version &> /dev/null").returns(true) }
it { method.call.must_be_nil }
end
end

0 comments on commit 322b248

Please sign in to comment.