Skip to content

Commit

Permalink
Merge pull request #610 from lpichler/parent_id_should_equals_to_nil
Browse files Browse the repository at this point in the history
FIX CI: Parent_id should equals to nil - it is default value in request_specs
  • Loading branch information
bdunne authored Jun 14, 2019
2 parents 3f97d1c + 9a6b74e commit 50c50d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 => 0).includes(:tag).first
t = Classification.where(:description => 'Department', :parent_id => nil).includes(:tag).first
request.add_tag(t.name, t.children.first.name)

api_basic_authorize action_identifier(:requests, :read, :resource_actions, :get)
Expand Down Expand Up @@ -289,7 +289,7 @@

FactoryBot.create(:classification_department_with_tags)

t = Classification.where(:description => 'Department', :parent_id => 0).includes(:tag).first
t = Classification.where(:description => 'Department', :parent_id => nil).includes(:tag).first
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 50c50d5

Please sign in to comment.