Sha256: e23756b5a30e6dba6b5455b93a3b7a5cf084cb51738d12bfedecb193dab3c179

Contents?: true

Size: 718 Bytes

Versions: 16

Compression:

Stored size: 718 Bytes

Contents

require 'test_plugin_helper'

describe TemplateInput do
  let(:template_input) { FactoryGirl.build(:template_input) }

  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

16 entries across 16 versions & 1 rubygems

Version Path
foreman_remote_execution-0.3.0 test/unit/template_input_test.rb
foreman_remote_execution-0.2.3 test/unit/template_input_test.rb
foreman_remote_execution-0.2.2 test/unit/template_input_test.rb
foreman_remote_execution-0.2.1 test/unit/template_input_test.rb
foreman_remote_execution-0.1.2 test/unit/template_input_test.rb
foreman_remote_execution-0.1.1 test/unit/template_input_test.rb
foreman_remote_execution-0.1.0 test/unit/template_input_test.rb
foreman_remote_execution-0.0.10 test/unit/template_input_test.rb
foreman_remote_execution-0.0.8 test/unit/template_input_test.rb
foreman_remote_execution-0.0.7 test/unit/template_input_test.rb
foreman_remote_execution-0.0.6 test/unit/template_input_test.rb
foreman_remote_execution-0.0.5 test/unit/template_input_test.rb
foreman_remote_execution-0.0.4 test/unit/template_input_test.rb
foreman_remote_execution-0.0.3 test/unit/template_input_test.rb
foreman_remote_execution-0.0.2 test/unit/template_input_test.rb
foreman_remote_execution-0.0.1 test/unit/template_input_test.rb