Sha256: 3ad88b12db724bb2b1e24d92911291a6f9fb98ebce4c50e52d6b3f9b732dd186
Contents?: true
Size: 690 Bytes
Versions: 4
Compression:
Stored size: 690 Bytes
Contents
require 'spec_helper' describe '$ blazing recipes' do before :each do setup_sandbox class Blazing::Recipe::Dummy < Blazing::Recipe def run puts 'dummy recipe was run' end end @dummy_recipe = Blazing::Recipe::Dummy.new @config = Blazing::Config.new @config.target :production, @production_url @config.instance_variable_set('@recipes', [@dummy_recipe]) @cli = Blazing::CLI.new Blazing::Config.stub(:parse).and_return @config end after :each do teardown_sandbox end it 'runs the configured recipes' do output = capture(:stdout) { @cli.recipes(:production) } output.should == "dummy recipe was run\n" end end
Version data entries
4 entries across 4 versions & 1 rubygems