From d82fe8040bb1c8b951c24fbf7ee35e34ca87381e Mon Sep 17 00:00:00 2001 From: Yuri Rudman Date: Wed, 19 Jun 2019 14:45:26 +0300 Subject: [PATCH] get rid of filtering on parent_id directly Co-Authored-By: Keenan Brock --- spec/requests/requests_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/requests/requests_spec.rb b/spec/requests/requests_spec.rb index 678fa026e9..8018025d88 100644 --- a/spec/requests/requests_spec.rb +++ b/spec/requests/requests_spec.rb @@ -258,7 +258,7 @@ FactoryBot.create(:classification_department_with_tags) - t = Classification.where(:description => 'Department', :parent_id => nil).includes(:tag).first + t = Classification.is_category.includes(:tag).find_by(:description => 'Department') request.add_tag(t.name, t.children.first.name) api_basic_authorize action_identifier(:requests, :read, :resource_actions, :get)