Skip to content

Commit

Permalink
get rid of filtering on parent_id directly
Browse files Browse the repository at this point in the history
Co-Authored-By: Keenan Brock <[email protected]>
  • Loading branch information
yrudman and kbrock authored Jun 19, 2019
1 parent 0d59a0c commit d82fe80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/requests/requests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d82fe80

Please sign in to comment.