c10l / cookbook-deploy_key

Idempotent Chef LWRP for creating, adding, removing and deleting SSH Deploy Keys on Bitbucket and Github
https://supermarket.getchef.com/cookbooks/deploy_key
Other
44 stars 27 forks source link

Add Matchers for Chefspec #8

Closed psyreactor closed 9 years ago

psyreactor commented 9 years ago
require 'chefspec'

describe 'example::default' do
  let(:chef_run) { ChefSpec::SoloRunner.converge(described_recipe) }

  it 'deploy key foo' do
    expect(chef_run).to create_deploy_key('foo')
  end
end
c10l commented 9 years ago

Thanks!