diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-07-14 14:38:06 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-07-14 14:38:06 +0300 |
commit | 8170384d808eb0712aedb32a1833e2cecc39ff1d (patch) | |
tree | eb291e0919ee510c266427c896eb7ed943c0e910 /spec/models/concerns | |
parent | 7fbcdfb074a0ca92e3d35f6b3c4d78f1940f88ef (diff) |
Revert "Merge branch 'revert-2c879643' into 'master'"
This reverts merge request !12633
Diffstat (limited to 'spec/models/concerns')
-rw-r--r-- | spec/models/concerns/sortable_spec.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/models/concerns/sortable_spec.rb b/spec/models/concerns/sortable_spec.rb deleted file mode 100644 index d1e17c4f684..00000000000 --- a/spec/models/concerns/sortable_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -require 'spec_helper' - -describe Sortable do - let(:relation) { Issue.all } - - describe '#where' do - it 'orders by id, descending' do - order_node = relation.where(iid: 1).order_values.first - expect(order_node).to be_a(Arel::Nodes::Descending) - expect(order_node.expr.name).to eq(:id) - end - end - - describe '#find_by' do - it 'does not order' do - expect(relation).to receive(:unscope).with(:order).and_call_original - - relation.find_by(iid: 1) - end - end -end |