Sha256: eed074a49c3c7fbc6beeb85e2fcabf447b59441697dcc2ac7cab4ca4876c5d8b

Contents?: true

Size: 491 Bytes

Versions: 1

Compression:

Stored size: 491 Bytes

Contents

require 'spec_helper'

describe Codesake::SSH::Config do
  describe "has a default configuration" do

    before(:all) do
      @nil_conf = Codesake::SSH::Config.read_conf(nil)
      
    end

    it "available" do
      @nil_conf.should_not be_nil
    end

    it "to test for port 22" do
      vet = [22]
      @nil_conf["config"]["ports_to_scan"].should == vet
    end

    it "has a ports shortcut" do
      vet = [22]
      Codesake::SSH::Config.ports.should == vet
    end
  end


end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
codesake_ssh-0.0.1 spec/lib/codesake_ssh_config_spec.rb