Sha256: a6fa16ed23787b91a190b2ac00d2c889bea54c3e2c7914eb3fef50bf975cfe1e

Contents?: true

Size: 798 Bytes

Versions: 31

Compression:

Stored size: 798 Bytes

Contents

require File.join(File.dirname(File.expand_path(__FILE__)), "/../spec_helper.rb")

describe "AutomateIt::AddressManager::Portable" do
  before :all do
    @a = AutomateIt.new(:verbosity => Logger::WARN)
    @d = @a.address_manager[:portable]
  end

  it "should have hostnames" do
    @d.hostnames.should_not be_empty
  end

  it "should have localhost in hostnames" do
    @d.hostnames.should include("localhost")
    @d.has?("localhost").should be_true
  end

  it "should have machine's hostname in hostnames" do
    @d.hostnames.should include(Socket.gethostname)
    @d.has?(Socket.gethostname).should be_true
  end

  it "should have addresses" do
    @d.addresses.should_not be_empty
  end

  it "should have 127.0.0.1 in addresses" do
    @d.addresses.should include("127.0.0.1")
  end
end

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
automate-it-0.9.2 spec/integration/address_manager_portable_spec.rb
automate-it-0.9.1 spec/integration/address_manager_portable_spec.rb
automate-it-0.9.0 spec/integration/address_manager_portable_spec.rb
automateit-0.70928 spec/integration/address_manager_portable_spec.rb
automateit-0.70930 spec/integration/address_manager_portable_spec.rb
automateit-0.71003 spec/integration/address_manager_portable_spec.rb
automateit-0.70923 spec/integration/address_manager_portable_spec.rb
automateit-0.71031.1 spec/integration/address_manager_portable_spec.rb
automateit-0.71031.2 spec/integration/address_manager_portable_spec.rb
automateit-0.71006 spec/integration/address_manager_portable_spec.rb
automateit-0.71030 spec/integration/address_manager_portable_spec.rb
automateit-0.71017 spec/integration/address_manager_portable_spec.rb
automateit-0.71012 spec/integration/address_manager_portable_spec.rb
automateit-0.71021 spec/integration/address_manager_portable_spec.rb
automateit-0.71102 spec/integration/address_manager_portable_spec.rb
automateit-0.71101.2 spec/integration/address_manager_portable_spec.rb
automateit-0.71031 spec/integration/address_manager_portable_spec.rb
automateit-0.71103 spec/integration/address_manager_portable_spec.rb
automateit-0.71101.1 spec/integration/address_manager_portable_spec.rb
automateit-0.71101 spec/integration/address_manager_portable_spec.rb