Skip to content

Commit

Permalink
Support psych 4 safe_load default with yaml_column_permitted_classes
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed Nov 14, 2023
1 parent 109c29d commit ed33313
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/engine/miq_ae_state_machine_retry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def create_restart_model(script1, script2, script3)
end

it "check persistent hash" do
ActiveRecord::Base.yaml_column_permitted_classes << "MiqAeEngine::StateVarHash"
setup_model(method_script_state_var)
expected = MiqAeEngine::StateVarHash.new('three' => 3, 'one' => 1, 'two' => 2, 'gravy' => 'train')
send_ae_request_via_queue(@automate_args)
Expand Down

0 comments on commit ed33313

Please sign in to comment.