spec/tests/relation_spec.rb in torque-postgresql-2.4.5 vs spec/tests/relation_spec.rb in torque-postgresql-3.0.0
- old
+ new
@@ -42,10 +42,10 @@
result = [['authors', 'name'], ['authors', 'age']]
expect(subject.call(check)).to be_attributes_as(result)
end
it 'raises on relation not present' do
- check = [supervisors: :name]
+ check = [tags: :name]
expect{ subject.call(check) }.to raise_error(ArgumentError, /Relation for/)
end
it 'raises on third level access' do
check = [author: [comments: :body]]