diff --git a/spec/models/miq_widget_set_spec.rb b/spec/models/miq_widget_set_spec.rb index 1fbf76a8b80..a62cfc8c985 100644 --- a/spec/models/miq_widget_set_spec.rb +++ b/spec/models/miq_widget_set_spec.rb @@ -83,13 +83,13 @@ expect(MiqWidgetSet.find_with_same_order([g2.id.to_s, g1.id.to_s])).to eq([g2, g1]) end end - + context "loading group specific defaul dashboard" do describe ".sync_from_file" do let(:dashboard_name) { "Dashboard for Group" } before do @yml_file = Tempfile.new('default_dashboard_for_group.yaml') - yml_data = YAML.load(<<-DOC) + yml_data = YAML.safe_load(<<~DOC, [Symbol]) --- name: #{dashboard_name} read_only: t