Skip to content

Instantly share code, notes, and snippets.

@hemalvarambhia
Last active August 29, 2015 14:08
Show Gist options
  • Save hemalvarambhia/49ab17769543b0d8e81a to your computer and use it in GitHub Desktop.
Save hemalvarambhia/49ab17769543b0d8e81a to your computer and use it in GitHub Desktop.
An example of how the nginx rpsec matcher is used in serverspec. This was also shown to the London Chef Users Meetup on Tuesday.
describe "AI office" do
describe "/feed URL" do
its(:content) {
should permit(client_machines).access_to("/feed")
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment