Skip to content

Instantly share code, notes, and snippets.

@initcron
Created April 9, 2014 05:23
Show Gist options
  • Save initcron/10228418 to your computer and use it in GitHub Desktop.
Save initcron/10228418 to your computer and use it in GitHub Desktop.
serverspec tests for git daemon
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