Sha256: 3653cdeda4c3419b65479bec5e335a185b3b6a6034cd2c0391ba2e393252834f
Contents?: true
Size: 1.25 KB
Versions: 3
Compression:
Stored size: 1.25 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') module Gritano describe Console do it "should setup a local console" do Console::Base.should_receive(:bin_name=).with("gritano ") Console::Remote.should_receive(:bin_name=).with("gritano ") Console::Executor.should_receive(:bin_name=).with("gritano ") Console::Gritano.should_receive(:bin_name=).with("gritano ") Console::Installer.should_receive(:bin_name=).with("gritano ") FileUtils.rm_rf(File.join("tmp", ".gritano")) FileUtils.mkdir(File.join('tmp', '.gritano')) Console.remote_console(false, 'tmp') end it "should setup a remote console" do Console::Base.should_receive(:bin_name=).with("ssh undefined@undefined admin:") Console::Remote.should_receive(:bin_name=).with("ssh undefined@undefined ") Console::Executor.should_receive(:bin_name=).with("ssh undefined@undefined admin:") Console::Gritano.should_receive(:bin_name=).with("ssh undefined@undefined admin:") Console::Installer.should_receive(:bin_name=).with("ssh undefined@undefined admin:") FileUtils.rm_rf(File.join("tmp", ".gritano")) FileUtils.mkdir(File.join('tmp', '.gritano')) Console.remote_console(true, 'tmp') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gritano-1.0.0 | spec/console_spec.rb |
gritano-0.11.2 | spec/console_spec.rb |
gritano-0.11.1 | spec/console_spec.rb |