Sha256: 7981136f0a0b47c1d8adb4b0781a7c243c8ff86cd77fb70d8567029873f2d9c7

Contents?: true

Size: 596 Bytes

Versions: 1

Compression:

Stored size: 596 Bytes

Contents

require 'spec_helper'

describe Adauth::AdObjects::Computer do
    it "Should find a computer" do
        default_config
        pdc.should be_a Adauth::AdObjects::Computer
    end
    
    it "should only find computers" do
      default_config
      Adauth::AdObjects::Computer.all.each do |computer|
        computer.should be_a Adauth::AdObjects::Computer
      end
    end
    
    it "should be in an ou" do
        default_config
        pdc.ous.should be_a Array
        pdc.ous.first.should be_a Adauth::AdObjects::OU
        pdc.ous.first.name.should eq "Domain Controllers"
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adauth-2.0.0 spec/adauth_ad_object_computer_spec.rb