Skip to content

Commit

Permalink
Create a dialog by the new class Dialog::OrchestrationTemplateService…
Browse files Browse the repository at this point in the history
…Dialog
  • Loading branch information
bzwei committed Sep 19, 2017
1 parent c56fd0c commit 30f3cee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/models/dialog_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 30f3cee

Please sign in to comment.