Fix testing changing yaml_column_permitted_classes

The default was changed in c2b96e3 but this test was not updated. Since
the assertion would pass even if the initializer failed, it needs to be
changed to something else.
This commit is contained in:
Hartley McGuire 2022-07-13 17:56:55 -04:00
parent 812bae8167
commit 1c13e6a47e
No known key found for this signature in database
GPG Key ID: E823FC1403858A82

@ -1752,11 +1752,11 @@ def index
remove_from_config '.*config\.load_defaults.*\n'
app_file "config/initializers/yaml_permitted_classes.rb", <<-RUBY
Rails.application.config.active_record.yaml_column_permitted_classes = [Symbol]
Rails.application.config.active_record.yaml_column_permitted_classes = [Symbol, Time]
RUBY
app "production"
assert_equal([Symbol], ActiveRecord.yaml_column_permitted_classes)
assert_equal([Symbol, Time], ActiveRecord.yaml_column_permitted_classes)
end
test "config.annotations wrapping SourceAnnotationExtractor::Annotation class" do