Skip to content

Commit

Permalink
Merge pull request #538 from jrafanie/ruby31_specify_permitted_classe…
Browse files Browse the repository at this point in the history
…s_in_test_for_state_var_hash

Allow StateVarHash to YAML.load from runtime instantiate
  • Loading branch information
agrare authored Dec 18, 2023
2 parents 9e3f656 + 9803f49 commit 2d26f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/engine/miq_ae_state_machine_retry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def create_restart_model(script1, script2, script3)
end

it "check persistent hash" do
ActiveRecord::Base.yaml_column_permitted_classes << "MiqAeEngine::StateVarHash"
YamlPermittedClasses.app_yaml_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 2d26f61

Please sign in to comment.