From 2c9b72e9b4d2b3def309d73dd291da906d55dda9 Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Mon, 6 Jul 2015 18:07:02 +0200 Subject: [PATCH] fix incorrect spec expectation --- spec/requests/custom_field_cache_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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