Skip to content

Instantly share code, notes, and snippets.

@trevor-vaughan
Last active August 29, 2015 14:19
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 trevor-vaughan/9da2292e4c0a7c938e8b to your computer and use it in GitHub Desktop.
Save trevor-vaughan/9da2292e4c0a7c938e8b to your computer and use it in GitHub Desktop.
using custom environments in rspec-puppet
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