use AR::execute as delete returns no rows

pull/6116/head
Jens Ulferts 7 years ago
parent b50f9cad44
commit f0d836e4e1
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 2
      spec/models/relation/hierarchy_paths_spec.rb

@ -226,7 +226,7 @@ describe Relation, 'hierarchy_paths', type: :model do
let!(:parent_child_relation) { Relation.create relation_type: 'hierarchy', from: parent, to: child }
before do
ActiveRecord::Base.connection.select_rows <<-SQL
ActiveRecord::Base.connection.execute <<-SQL
DELETE FROM hierarchy_paths
SQL
ActiveRecord::Base.connection.execute <<-SQL

Loading…
Cancel
Save