Sha256: 16b179e872c95170b155188dde8d8bbfd864de5989c54c6df25b3b34426bec26

Contents?: true

Size: 1 KB

Versions: 17

Compression:

Stored size: 1 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 ")
      Console.remote_console(false)
    end
    
    it "should setup a remote console" do
      Console::Base.should_receive(:bin_name=).with("ssh git@host.com admin:")
      Console::Remote.should_receive(:bin_name=).with("ssh git@host.com ")
      Console::Executor.should_receive(:bin_name=).with("ssh git@host.com admin:")
      Console::Gritano.should_receive(:bin_name=).with("ssh git@host.com admin:")
      Console::Installer.should_receive(:bin_name=).with("ssh git@host.com admin:")
      Console.remote_console(true)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
gritano-0.11.0 spec/console_spec.rb
gritano-0.10.3 spec/console_spec.rb
gritano-0.10.2 spec/console_spec.rb
gritano-0.10.1 spec/console_spec.rb
gritano-0.10.0 spec/console_spec.rb
gritano-0.9.4 spec/console_spec.rb
gritano-0.9.3 spec/console_spec.rb
gritano-0.9.2 spec/console_spec.rb
gritano-0.9.1 spec/console_spec.rb
gritano-0.9.0 spec/console_spec.rb
gritano-0.8.1 spec/console_spec.rb
gritano-0.8.0 spec/console_spec.rb
gritano-0.7.2 spec/console_spec.rb
gritano-0.7.1 spec/console_spec.rb
gritano-0.7.0 spec/console_spec.rb
gritano-0.6.0 spec/console_spec.rb
gritano-0.5.4 spec/console_spec.rb