Sha256: 2ef8d3571e26781ee57c6292a8fe1a0209b35e89e57c189c5c271052cae95635

Contents?: true

Size: 564 Bytes

Versions: 6

Compression:

Stored size: 564 Bytes

Contents

require File.expand_path("../../spec_helper", File.dirname(__FILE__))

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

6 entries across 6 versions & 1 rubygems

Version Path
sprinkle-0.4.2 spec/sprinkle/actors/local_spec.rb
sprinkle-0.4.1 spec/sprinkle/actors/local_spec.rb
sprinkle-0.4.0 spec/sprinkle/actors/local_spec.rb
sprinkle-0.3.6 spec/sprinkle/actors/local_spec.rb
sprinkle-0.3.5 spec/sprinkle/actors/local_spec.rb
sprinkle-0.3.4 spec/sprinkle/actors/local_spec.rb