Created
April 9, 2014 05:23
-
-
Save initcron/10228418 to your computer and use it in GitHub Desktop.
serverspec tests for git daemon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'serverspec' | |
include Serverspec::Helper::Exec | |
include Serverspec::Helper::DetectOS | |
RSpec.configure do |c| | |
c.before :all do | |
c.path = '/sbin:/usr/sbin' | |
end | |
end | |
describe "Git Daemon" do | |
it "is listening on port 9418" do | |
expect(port(9418)).to be_listening | |
end | |
it "has a running service of git-daemon" do | |
expect(service("git-daemon")).to be_running | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment