Skip to content
This repository has been archived by the owner on Feb 7, 2018. It is now read-only.

Commit

Permalink
Add basic spec
Browse files Browse the repository at this point in the history
  • Loading branch information
tas50 committed Sep 29, 2015
1 parent b766dc6 commit fc5c4c6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
@@ -0,0 +1,4 @@
require 'chefspec'
require 'chefspec/berkshelf'

at_exit { ChefSpec::Coverage.report! }
13 changes: 13 additions & 0 deletions spec/unit/recipes/default_spec.rb
@@ -0,0 +1,13 @@
require 'spec_helper'

describe 'default recipe on Ubuntu 14.04' do
let(:chef_run) do
ChefSpec::ServerRunner.new do |node|
node.automatic[:lsb][:codename] = 'trusty'
end.converge('whitelist-node-attrs::default')
end

it 'converges successfully' do
expect { :chef_run }.to_not raise_error
end
end

0 comments on commit fc5c4c6

Please sign in to comment.