fix incorrect spec expectation

pull/6827/head
Jens Ulferts 9 years ago
parent 76fe0a4f24
commit 2c9b72e9b4
  1. 6
      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

Loading…
Cancel
Save