Skip to content

Instantly share code, notes, and snippets.

Git Cheat Sheet

Commands

Getting Started

git init

or

require 'spec_helper'
let(:defaults) do
{ 'owner' => 'root', 'group' => 'root' }
end
describe 'scott_test' do
it do should contain_file('foo', 'bar', 'baz').with(
{ 'ensure' => 'present' }.merge(defaults)
) end