From a6558c4723d83c2f00df8b26d4b0b7fd96751eaf Mon Sep 17 00:00:00 2001 From: Bill Wei Date: Wed, 31 Jan 2018 16:25:33 -0500 Subject: [PATCH] Implement #configuration_script because of virtual_has_one relationship Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1540250 --- app/models/service.rb | 3 +++ spec/models/service_spec.rb | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/app/models/service.rb b/app/models/service.rb index bd2993198c6..5ce5af69593 100644 --- a/app/models/service.rb +++ b/app/models/service.rb @@ -435,6 +435,9 @@ def remove_from_service(parent_service) parent_service.remove_resource(self) end + def configuration_script + end + private def apply_dialog_settings diff --git a/spec/models/service_spec.rb b/spec/models/service_spec.rb index 0e3193bdedb..fddfb3c96af 100644 --- a/spec/models/service_spec.rb +++ b/spec/models/service_spec.rb @@ -840,4 +840,8 @@ def create_deep_tree end end end + + describe '#configuration_script' do + it { expect(subject.configuration_script).to be_nil } + end end