Sha256: 0f3767f33bda0ac067985165926aad23dde40de26a17457112d5471e3d7ecb69
Contents?: true
Size: 609 Bytes
Versions: 2
Compression:
Stored size: 609 Bytes
Contents
require 'spec_helper' module Alf describe Ordering, "selectors" do subject{ ordering.selectors } context 'with single attribute names' do let(:ordering){ Ordering.new([[:a, :asc], [:b, :asc]]) } it "works as expected" do subject.should eq([Alf::Selector[:a], Alf::Selector[:b]]) end end context 'with complex attribute names' do let(:ordering){ Ordering.new([[:a, :asc], [[:b, :name], :asc]]) } it "works as expected" do subject.should eq([Alf::Selector[:a], Alf::Selector[[:b, :name]]]) end end end # Ordering end # Alf
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alf-core-0.15.0 | spec/unit/alf-types/ordering/test_selectors.rb |
alf-core-0.14.0 | spec/unit/alf-types/ordering/test_selectors.rb |