Sha256: 8c00a8cf27a759dc4311aa3d4d8f3aa57b74c9ccd7d6cf39ec5454ba2c35de77
Contents?: true
Size: 497 Bytes
Versions: 7
Compression:
Stored size: 497 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
7 entries across 7 versions & 1 rubygems