Sha256: f44e1a727efff5aa74a36d5fe2a140635dee774c4d6a59bcf0e6aa3710267d34
Contents?: true
Size: 994 Bytes
Versions: 6
Compression:
Stored size: 994 Bytes
Contents
require 'test_plugin_helper' describe JobInvocation do let(:job_invocation) { FactoryGirl.build(:job_invocation) } let(:template) { FactoryGirl.create(:job_template, :with_input) } context 'Able to be created' do it { assert job_invocation.save } end context 'Requires targeting' do before { job_invocation.targeting = nil } it { refute_valid job_invocation } end context 'has template invocations with input values' do let(:job_invocation) { FactoryGirl.create(:job_invocation, :with_template) } before do @input_value = FactoryGirl.create(:template_invocation_input_value, :template_invocation => job_invocation.template_invocations.first, :template_input => template.template_inputs.first) end it { refute job_invocation.reload.template_invocations.empty? } it { refute job_invocation.template_invocations.first.input_values.empty? } end end
Version data entries
6 entries across 6 versions & 1 rubygems