diff --git a/spec/requests/custom_field_cache_spec.rb b/spec/requests/custom_field_cache_spec.rb index 137216f867..4e9119c185 100644 --- a/spec/requests/custom_field_cache_spec.rb +++ b/spec/requests/custom_field_cache_spec.rb @@ -45,13 +45,13 @@ describe 'Custom field filter and group by caching', type: :request do end def expect_group_by_all_to_not_exist(custom_field) - # can not check for whether the element is included in CostQuery::GroupBy if it does not exist + # can not check for whether the element is included in CostQuery::GroupBy.all if it does not exist expect { group_by_class_name_string(custom_field).constantize }.to raise_error NameError end def expect_filter_all_to_not_exist(custom_field) - # can not check for whether the element is included in CostQuery::GroupBy if it does not exist - expect { group_by_class_name_string(custom_field).constantize }.to raise_error NameError + # can not check for whether the element is included in CostQuery::Filter.all if it does not exist + expect { filter_class_name_string(custom_field).constantize }.to raise_error NameError end def visit_cost_reports_index