Sha256: 3971b0848c70e685c0ac61bd4fa3080e480dc14d4e99358009f79766c1a7dea3

Contents?: true

Size: 867 Bytes

Versions: 20

Compression:

Stored size: 867 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

module Gritano
  module Console
    describe Installer do
      def create_installer(home)
        FileUtils.rm_rf(File.join(home, ".gritano"))
        stdin = double()
        stdin.stub(:read).and_return("Your SSHKEY here...")
        Installer.new(stdin, home)
      end
      
      it "should prepare the environment" do
        installer = create_installer("tmp")
        installer.should_receive(:create_gritano_dirs)
        installer.should_receive(:create_sqlite_config)
        installer.execute(["setup:prepare"])
      end
      
      it "should install" do
        installer = create_installer("tmp")
        installer.should_receive(:create_database)
        installer.should_receive(:create_authorization_keys)
        installer.execute(["setup:install"])
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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