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
lachlan-sprinkle-0.0.16 spec/sprinkle/actors/local_spec.rb
lachlan-sprinkle-0.0.2 spec/sprinkle/actors/local_spec.rb
lachlan-sprinkle-0.0.3 spec/sprinkle/actors/local_spec.rb
lachlan-sprinkle-0.0.4 spec/sprinkle/actors/local_spec.rb
lachlan-sprinkle-0.0.5 spec/sprinkle/actors/local_spec.rb
lachlan-sprinkle-0.0.6 spec/sprinkle/actors/local_spec.rb
lachlan-sprinkle-0.0.7 spec/sprinkle/actors/local_spec.rb
lachlan-sprinkle-0.0.8 spec/sprinkle/actors/local_spec.rb
lachlan-sprinkle-0.0.9 spec/sprinkle/actors/local_spec.rb
mdwan-sprinkle-0.2.2 spec/sprinkle/actors/local_spec.rb
mdwan-sprinkle-0.2.3 spec/sprinkle/actors/local_spec.rb
trevorturk-sprinkle-0.2.2 spec/sprinkle/actors/local_spec.rb
trevorturk-sprinkle-0.2.6 spec/sprinkle/actors/local_spec.rb
dhill-sprinkle-0.3.3.1 spec/sprinkle/actors/local_spec.rb
sprinkle-0.3.3 spec/sprinkle/actors/local_spec.rb
sprinkle-0.3.2 spec/sprinkle/actors/local_spec.rb
powcloud-sprinkle-0.3.4 spec/sprinkle/actors/local_spec.rb
powcloud-sprinkle-0.3.0 spec/sprinkle/actors/local_spec.rb
sprinkle-0.3.1 spec/sprinkle/actors/local_spec.rb
sprinkle-0.3.0 spec/sprinkle/actors/local_spec.rb