Sha256: 049fc7c5c5704efc86c3dcf7eda28306a23124fd3fa6843ab68825219247a06b
Contents?: true
Size: 1.06 KB
Versions: 9
Compression:
Stored size: 1.06 KB
Contents
require 'test_plugin_helper' describe TemplateInput do let(:template_input) { FactoryGirl.build(:template_input) } context 'export' do before do template_input.input_type = 'user' template_input.options = "foo\nbar\nbaz" end it 'exports type' do template_input.to_export['input_type'].must_equal template_input.input_type end it 'exports options' do template_input.to_export['options'].must_equal template_input.options end end context 'user input' do before { template_input.input_type = 'user' } it { assert template_input.user_template_input? } end context 'fact input' do before { template_input.input_type = 'fact' } it { assert template_input.fact_template_input? } end context 'variable input' do before { template_input.input_type = 'variable' } it { assert template_input.variable_template_input? } end context 'puppet parameter input' do before { template_input.input_type = 'puppet_parameter' } it { assert template_input.puppet_parameter_template_input? } end end
Version data entries
9 entries across 9 versions & 1 rubygems