Skip to content

Commit

Permalink
add spec test for dhcp::dhcp_class
Browse files Browse the repository at this point in the history
Closes GH-60
  • Loading branch information
brandonweeks authored and ekohl committed Oct 14, 2015
1 parent 28cd87e commit 96e9d2b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions spec/defines/class_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
require 'spec_helper'

describe 'dhcp::dhcp_class' do
let :title do 'vendor-class' end

let :params do {
:parameters => [
'match option vendor-class-identifier',
]
} end

let :facts do {
:concat_basedir => '/doesnotexist',
} end

it {
verify_concat_fragment_exact_contents(catalogue, 'dhcp.conf+50_vendor-class.dhcp', [
'class "vendor-class" {',
' match option vendor-class-identifier;',
'}'
])
}
end

0 comments on commit 96e9d2b

Please sign in to comment.