Sha256: df30080a9c58b2cb1d86aba54a207a0c45ac45903a797654a40144923c470ccc

Contents?: true

Size: 502 Bytes

Versions: 3

Compression:

Stored size: 502 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(:cloudfuji_envs).
        and_return({})
            
      Tane::Commands::Exec.should_receive(:exec).with(args.join(' '))
      Tane::Commands::Exec.process(args)
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tane-0.0.5 spec/commands/exec_spec.rb
tane-0.0.4 spec/commands/exec_spec.rb
tane-0.0.3 spec/commands/exec_spec.rb