From 30f3ceed3fcb0770804e9a0e0c69178ea84953b5 Mon Sep 17 00:00:00 2001 From: Bill Wei Date: Tue, 19 Sep 2017 16:17:37 -0400 Subject: [PATCH] Create a dialog by the new class Dialog::OrchestrationTemplateServiceDialog --- spec/models/dialog_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/dialog_spec.rb b/spec/models/dialog_spec.rb index be77a0741b8..0b42467c63d 100644 --- a/spec/models/dialog_spec.rb +++ b/spec/models/dialog_spec.rb @@ -431,9 +431,9 @@ end describe "#deep_copy" do - let(:dialog_service) { OrchestrationTemplateDialogService.new } - let(:template_hot) { FactoryGirl.create(:orchestration_template_hot_with_content) } - let(:dialog) { dialog_service.create_dialog('test', template_hot) } + let(:dialog_service) { Dialog::OrchestrationTemplateServiceDialog.new } + let(:template) { FactoryGirl.create(:orchestration_template).tap { |t| allow(t).to receive(:parameter_groups).and_return([]) } } + let(:dialog) { dialog_service.create_dialog('test', template) } it "clones the dialog and all containing components" do dialog_new = dialog.deep_copy(:name => 'test_cloned')