Sha256: e4942e334972bac7f1b0f35236966281a9378061dc10d962f56f1a98075f549f

Contents?: true

Size: 749 Bytes

Versions: 5

Compression:

Stored size: 749 Bytes

Contents

require 'spec_helper'

describe Adauth::AdObjects::Computer do
    let(:computer) do
      ou = Adauth::AdObjects::OU.where('name', 'Domain Controllers').first
      ou.members.first
    end
    
    it "Should find a computer" do
        default_config
        computer.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
        computer.ous.should be_a Array
        computer.ous.first.should be_a Adauth::AdObjects::OU
        computer.ous.first.name.should eq "Domain Controllers"
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adauth-2.0.5 spec/adauth_ad_object_computer_spec.rb
adauth-2.0.4 spec/adauth_ad_object_computer_spec.rb
adauth-2.0.3 spec/adauth_ad_object_computer_spec.rb
adauth-2.0.2 spec/adauth_ad_object_computer_spec.rb
adauth-2.0.1 spec/adauth_ad_object_computer_spec.rb