Sha256: 3a1c1a9b49748b88d61a8b8d2cad3b5c05e6639964e6579cc842ffd26a752dbd

Contents?: true

Size: 500 Bytes

Versions: 2

Compression:

Stored size: 500 Bytes

Contents

require "spec_helper"

describe Tane::Commands::Exec do

  describe ".process" do
    it "should call exec to replace the current process with the arguments passed" do
      args = ['foo', 'bar']

      Tane::Commands::Exec.should_receive(:authenticate_user).and_return(true)
      Tane::Commands::Exec.should_receive(:bushido_envs).
        and_return({})
            
      Tane::Commands::Exec.should_receive(:exec).with(args.join(' '))
      Tane::Commands::Exec.process(args)
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tane-0.0.2 spec/commands/exec_spec.rb
tane-0.0.1 spec/commands/exec_spec.rb