Sha256: 0bf98b16e711a6b76adfbec8eb8e301a320d8ef9df02f869b9875915c7aba613
Contents?: true
Size: 561 Bytes
Versions: 1
Compression:
Stored size: 561 Bytes
Contents
require 'spec_helper' describe Cumuli::CLI::RemoteRakeCommand do let(:argv) { ["cumuli:remote[rake db:migrate]", "DIR=./mactivator"] } let(:remote_command) { Cumuli::CLI::RemoteRakeCommand.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cumuli-0.5.0 | spec/cli/remote_rake_command_spec.rb |