Use config_override when a test requires a certain configuration option value

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 8.1.0
    • Affects Version/s: None
    • Component/s: Tests
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Mongoid test suite historically set individual option values as needed in each test. Sometimes these options weren't reset back to defaults, which could affect subsequent tests. When the options were reset, they sometimes were reset to what was the default at the time the test was written, not to the active runtime value, which would yield wrong behavior if the default was changed (as happened for 8.0).

      All tests which need specific local configuration option values should use config_override to correctly gain those values for the duration of the tests.

            Assignee:
            Neil Shweky (Inactive)
            Reporter:
            Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: