Browse files

Add test for Gitnesse::Dependencies.check

  • Loading branch information...
1 parent a15744f commit 1c51ffac86cb9570f7356620db75dc577e7d383b @stewart stewart committed Dec 7, 2012
Showing with 14 additions and 0 deletions.
  1. +1 −0 lib/gitnesse/dependencies.rb
  2. +13 −0 test/lib/gitnesse/dependencies_check_test.rb
View
1 lib/gitnesse/dependencies.rb
@@ -11,6 +11,7 @@ def self.check
check_git
check_cucumber
check_repository_url
+ check_annotation_info
end
protected
View
13 test/lib/gitnesse/dependencies_check_test.rb
@@ -1,6 +1,19 @@
require_relative '../../test_helper'
describe Gitnesse::Dependencies do
+ describe "#check" do
+ before do
+ Gitnesse::Dependencies.expects(:check_git)
+ Gitnesse::Dependencies.expects(:check_cucumber)
+ Gitnesse::Dependencies.expects(:check_repository_url)
+ Gitnesse::Dependencies.expects(:check_annotation_info)
+ end
+
+ it "calls the other check functions" do
+ Gitnesse::Dependencies.check
+ end
+ end
+
describe "#check_repository_url" do
let(:method) { lambda { Gitnesse::Dependencies.check_repository_url } }

0 comments on commit 1c51ffa

Please sign in to comment.