Skip to content

Commit

Permalink
add tests for grafana:plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Apr 29, 2017
1 parent 5215d21 commit c295ee5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions spec/defines/plugin_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
require 'spec_helper'

describe 'grafana::plugin', type: :define do
on_supported_os.each do |os, facts|
context "on #{os} " do

let :facts do
facts
end

let :title do
'grafana-simple-json-datasource'
end

context 'with all defaults' do
it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_exec("install #{title}") }
end
end
end
end

0 comments on commit c295ee5

Please sign in to comment.