Skip to content

Commit

Permalink
Merge pull request ManageIQ#15996 from bzwei/fix_dialog_spec
Browse files Browse the repository at this point in the history
Create a dialog by the new class Dialog::OrchestrationTemplateServiceDialog
  • Loading branch information
gmcculloug authored Sep 19, 2017
2 parents fe042bd + 30f3cee commit 07decc4
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 07decc4

Please sign in to comment.