Skip to content

Instantly share code, notes, and snippets.

@ftclausen
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ftclausen/25c2663cbd474cd05944 to your computer and use it in GitHub Desktop.
Save ftclausen/25c2663cbd474cd05944 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe 'test_mycookbook::doit' do
iaas_providers = [ 'ec2' ]
iaas_providers.each do |provider|
context "Test on cloud provider #{provider}" do
let(:chef_run) { ChefSpec::Runner.new(platform: 'ubuntu', version: '12.04').converge('test_mycookbook::doit') }
it 'should do the thing' do
expect(chef_run).to doit('thing')
end
end
end
end
@ftclausen
Copy link
Author

See original revision for issue - now update to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment