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