Sha256: 953caf159e56b652acd8513da26f8f62e722a4e77e5a9bbe27c68bcbeebee91c

Contents?: true

Size: 688 Bytes

Versions: 2

Compression:

Stored size: 688 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

2 entries across 2 versions & 1 rubygems

Version Path
blazing-0.2.10 spec/blazing/integration/recipes_spec.rb
blazing-0.2.9 spec/blazing/integration/recipes_spec.rb