Skip to content

Commit

Permalink
Merge pull request #316 from alexjfisher/unit_test
Browse files Browse the repository at this point in the history
Add unit test for zabbix_hostgroup type
  • Loading branch information
bastelfreak authored Nov 25, 2016
2 parents 48eec8a + d3b5626 commit ed7d06e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/unit/puppet/type/zabbix_hostgroup_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'spec_helper'

describe Puppet::Type.type(:zabbix_hostgroup) do
describe 'when validating attributes' do
[:name, :zabbix_url, :zabbix_user, :zabbix_pass, :apache_use_ssl, :provider].each do |param|
it "should have a #{param} parameter" do
expect(described_class.attrtype(param)).to eq(:param)
end
end
end
end

0 comments on commit ed7d06e

Please sign in to comment.