spec/integration/sequel_api_spec.rb in rom-sql-1.0.3 vs spec/integration/sequel_api_spec.rb in rom-sql-1.1.0
- old
+ new
@@ -26,6 +26,12 @@
describe '#where' do
it 'restricts relation' do
expect(users.where(name: 'Jane').first).to eql(id: 1, name: 'Jane')
end
end
+
+ describe '#order' do
+ it 'orders relation' do
+ expect(users.order(:users__name).first).to eql(id: 1, name: 'Jane')
+ end
+ end
end