ProductSearchTest#test_locale ignores localized_active_fields setting
Closed this issue · 1 comments
pachkovsky commented
Describe the bug
A recently added test
fails when
Workarea.config.localized_active_fields
is set to false because active
field is not localized
From Workarea::Releasable
field :active, type: Boolean, default: true, localize: Workarea.config.localized_active_fields
To Reproduce
- Set
Workarea.config.localized_active_fields = false
- Run
test/queries/workarea/search/product_search_test.rb
test_locale
fails withMongoid::Errors::UnknownAttribute
exception
Expected behavior
Test should be skipped if localized_active_fields
is set to false
Workarea Setup (please complete the following information):
- Workarea Version: [v3.4.31]
bencrouse commented
Thanks for reporting, we'll get this in the patch release next week.