Last active
August 29, 2015 14:19
-
-
Save trevor-vaughan/9da2292e4c0a7c938e8b to your computer and use it in GitHub Desktop.
using custom environments in rspec-puppet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe 'my_class' do | |
it { should compile.with_all_deps } | |
context 'with defaults for all parameters in the :development environment' do | |
# The magic happens here! | |
let(:environment){:development} | |
it { should compile.with_all_deps } | |
it { should contain_class('my_class') } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment