Sha256: e00489c3d210c779b146e6fc62e6cd062e30b16ac44debacb4f7a4886b063d4b
Contents?: true
Size: 553 Bytes
Versions: 6
Compression:
Stored size: 553 Bytes
Contents
require 'spec_helper' describe Cumuli::CLI::RemoteCommand do let(:argv) { ["cumuli:remote[rake db:migrate]", "DIR=./mactivator"] } let(:remote_command) { Cumuli::CLI::RemoteCommand.new(argv) } it "parses the directory from the arguments" do remote_command.dir.should == "./mactivator" end it "constructs a command using the Commander" do commander = double(build: 'yup') Cumuli::CLI::Commander.should_receive(:new) .with("rake db:migrate") .and_return(commander) remote_command.command.should == 'yup' end end
Version data entries
6 entries across 6 versions & 1 rubygems