Sha256: ec83321a6697120034fb72eac3db83027c704b9eab723d614b1f79125aee7822

Contents?: true

Size: 503 Bytes

Versions: 2

Compression:

Stored size: 503 Bytes

Contents

require 'spec_helper'

describe Cumuli::CLI::Args do
  let(:argv) { ["../mactivator", "-p", "4000"] }
  let(:args) { Cumuli::CLI::Args.new(argv) }
  
  it "#dir will return the first element passed in" do
    args.dir.should == "../mactivator"
  end
  
  it "#name is correctly determined from the directory" do
    args.name.should == 'mactivator'
  end
  
  it "#foreman_options should be a string representation of the rest of the arguments" do
    args.foreman_options.should == '-p 4000'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cumuli-0.2.1 spec/cli/args_spec.rb
cumuli-0.2.0 spec/cli/args_spec.rb