Sha256: 4ab8fff4eef43b536fd2d8772e35a38498a3d000ff6de848580a54c457b2dcec

Contents?: true

Size: 548 Bytes

Versions: 50

Compression:

Stored size: 548 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

describe Sprinkle::Actors::Local do

  before do
    @local = Sprinkle::Actors::Local.new
  end

  describe 'when processing commands' do

    before do
      @commands = %w( op1 op2 )
      @roles    = %w( app )
      @name     = 'name'
    
      @local.stub!(:system).and_return
    end

    it 'should run the commands on the local system' do
      @local.should_receive(:system).twice.and_return
    end
    
    after do
      @local.process @name, @commands, @roles
    end

  end

end

Version data entries

50 entries across 50 versions & 11 rubygems

Version Path
crafterm-sprinkle-0.1.7 spec/sprinkle/actors/local_spec.rb
crafterm-sprinkle-0.1.8 spec/sprinkle/actors/local_spec.rb
crafterm-sprinkle-0.1.9 spec/sprinkle/actors/local_spec.rb
crafterm-sprinkle-0.2.0 spec/sprinkle/actors/local_spec.rb
crafterm-sprinkle-0.2.1 spec/sprinkle/actors/local_spec.rb
crafterm-sprinkle-0.2.2 spec/sprinkle/actors/local_spec.rb
crafterm-sprinkle-0.2.3 spec/sprinkle/actors/local_spec.rb
crafterm-sprinkle-0.2.4 spec/sprinkle/actors/local_spec.rb
crafterm-sprinkle-0.2.5 spec/sprinkle/actors/local_spec.rb
crafterm-sprinkle-0.2.6 spec/sprinkle/actors/local_spec.rb
jemmyw-sprinkle-0.2.3 spec/sprinkle/actors/local_spec.rb
jemmyw-sprinkle-0.2.4 spec/sprinkle/actors/local_spec.rb
jsierles-sprinkle-0.1.9 spec/sprinkle/actors/local_spec.rb
justsee-sprinkle-0.2.4 spec/sprinkle/actors/local_spec.rb
lachlan-sprinkle-0.0.1 spec/sprinkle/actors/local_spec.rb
lachlan-sprinkle-0.0.10 spec/sprinkle/actors/local_spec.rb
lachlan-sprinkle-0.0.11 spec/sprinkle/actors/local_spec.rb
lachlan-sprinkle-0.0.13 spec/sprinkle/actors/local_spec.rb
lachlan-sprinkle-0.0.14 spec/sprinkle/actors/local_spec.rb
lachlan-sprinkle-0.0.15 spec/sprinkle/actors/local_spec.rb