Sha256: a66b4dd18d6dacd71956189f3a6f7fe97f7a82c6b58bc18f913bec10dba26c41
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation::Operation::Order::DirectionSet, '#reverse' do subject { object.reverse } let(:attribute1) { Attribute::Integer.new(:id) } let(:attribute2) { Attribute::String.new(:name) } let(:object) { described_class.coerce([attribute1, attribute2]) } it_should_behave_like 'an idempotent method' it { should be_instance_of(described_class) } it 'reverses each direction' do should == [attribute1.desc, attribute2.desc] end it 'does not reverse the attribute order' do subject.attributes.should eql([attribute1, attribute2]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.1 | spec/unit/axiom/relation/operation/order/direction_set/reverse_spec.rb |