Sha256: 2e638bcea8fc77f05a816a5e02439991fb6f1a1c880d3c81d5476b552f4ac027

Contents?: true

Size: 709 Bytes

Versions: 7

Compression:

Stored size: 709 Bytes

Contents

require 'spec_helper'

describe '$ blazing recipes' do

  before :each do
    setup_sandbox
    class Blazing::Recipe::Dummy < Blazing::Recipe
      def run(target_options={})
        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

7 entries across 7 versions & 1 rubygems

Version Path
blazing-0.4.2 spec/blazing/integration/recipes_spec.rb
blazing-0.4.1 spec/blazing/integration/recipes_spec.rb
blazing-0.4.0 spec/blazing/integration/recipes_spec.rb
blazing-0.4.0.beta3 spec/blazing/integration/recipes_spec.rb
blazing-0.4.0.beta2 spec/blazing/integration/recipes_spec.rb
blazing-0.4.0.beta1 spec/blazing/integration/recipes_spec.rb
blazing-0.3.0 spec/blazing/integration/recipes_spec.rb