Skip to content

Instantly share code, notes, and snippets.

@brettski
Created November 21, 2016 20:00
Show Gist options
  • Save brettski/e043269e373f40cb5e19b2f4e7ecdce2 to your computer and use it in GitHub Desktop.
Save brettski/e043269e373f40cb5e19b2f4e7ecdce2 to your computer and use it in GitHub Desktop.
The simple, default rspec file I am trying to get to work with Chef
#
# Cookbook Name:: pulse_web
# Spec:: default
#
# Copyright (c) 2016 The Authors, All Rights Reserved.
require 'spec_helper'
describe 'pulse_web::default' do
let(:chef_run) do
runner = ChefSpec::ServerRunner.new(platform: 'windows', version: '2012R2')
runner.converge(described_recipe)
end
it 'converges successfully' do
expect { chef_run }.to_not raise_error
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment