Add missing `ostruct` require on AR test suite

Similar to 50515fb45f, make sure we
require `ostruct` where we use `OpenStruct`, to get the build back to
green, while we work to remove its usage on tests. (see #51510.)

Sample error:

```
Error:
ActiveRecord::Encryption::ConfigurableTest#test_installing_autofiltered_parameters_will_add_the_encrypted_attribute_as_a_filter_parameter_using_the_dot_notation:
NameError: uninitialized constant ActiveRecord::Encryption::ConfigurableTest::OpenStruct
    test/cases/encryption/configurable_test.rb:45:in `block in <class:ConfigurableTest>'
```
This commit is contained in:
Carlos Antonio da Silva 2024-04-09 13:54:13 -03:00
parent 1e444dd0dd
commit 8feeab2338
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
# frozen_string_literal: true
require "ostruct"
require "cases/encryption/helper"
require "models/pirate"
require "models/book"