Sha256: a0383db3f8113522c2162a989f32c45111b5e14a5c780f659392d5898ffc2ae6

Contents?: true

Size: 315 Bytes

Versions: 21

Compression:

Stored size: 315 Bytes

Contents

require 'spec_helper'

describe RestPack::Serializer::Sortable do
  class CustomSerializer
    include RestPack::Serializer
    attributes :a, :b, :c

    can_sort_by :a, :c
  end

  it 'captures the specified sorting attributes' do
    CustomSerializer.serializable_sorting_attributes.should == [:a, :c]
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
restpack_serializer-0.6.7 spec/serializable/sortable_spec.rb
restpack_serializer-0.6.6 spec/serializable/sortable_spec.rb
restpack_serializer-0.6.5 spec/serializable/sortable_spec.rb
restpack_serializer-0.6.4 spec/serializable/sortable_spec.rb
restpack_serializer-0.6.3 spec/serializable/sortable_spec.rb
restpack_serializer-0.6.2 spec/serializable/sortable_spec.rb
restpack_serializer-0.6.1 spec/serializable/sortable_spec.rb
restpack_serializer-0.5.10 spec/serializable/sortable_spec.rb
restpack_serializer-0.5.9 spec/serializable/sortable_spec.rb
restpack_serializer-0.5.8 spec/serializable/sortable_spec.rb
restpack_serializer-0.5.7 spec/serializable/sortable_spec.rb
restpack_serializer-0.5.6 spec/serializable/sortable_spec.rb
restpack_serializer-0.5.5 spec/serializable/sortable_spec.rb
restpack_serializer-0.5.4 spec/serializable/sortable_spec.rb
restpack_serializer-0.5.3 spec/serializable/sortable_spec.rb
restpack_serializer-0.5.2 spec/serializable/sortable_spec.rb
restpack_serializer-0.5.1 spec/serializable/sortable_spec.rb
restpack_serializer-0.5.0 spec/serializable/sortable_spec.rb
restpack_serializer-0.4.28 spec/serializable/sortable_spec.rb
restpack_serializer-0.4.27 spec/serializable/sortable_spec.rb