Skip to content

Commit

Permalink
Add missing ostruct require on AR test suite
Browse files Browse the repository at this point in the history
Similar to 50515fb, 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 rails#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>'
```
  • Loading branch information
carlosantoniodasilva committed Apr 9, 2024
1 parent 1e444dd commit 8feeab2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions activerecord/test/cases/encryption/configurable_test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

require "ostruct"
require "cases/encryption/helper"
require "models/pirate"
require "models/book"
Expand Down

0 comments on commit 8feeab2

Please sign in to comment.