blob: 4b7a46489fcf46329e62e95307af803c71c4b9b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/usr/bin/env rspec
require 'spec_helper'
describe "Dc_suffix fact" do
it "should be based on tld domain" do
Facter.fact(:domain).stubs(:value).returns("test")
Facter.fact(:dc_suffix).value.should == "dc=test"
end
it "should be based on domain" do
Facter.fact(:domain).stubs(:value).returns("test.example.org")
Facter.fact(:dc_suffix).value.should == "dc=test,dc=example,dc=org"
end
end
|