Sha256: 8dcf98ce0273f201d946156885365c9be75d7452bd80db204cda393c3fbf8a5d

Contents?: true

Size: 297 Bytes

Versions: 40

Compression:

Stored size: 297 Bytes

Contents

require 'spec_helper'

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

    can_filter_by :a, :c
  end

  it "captures the specified filters" do
    CustomSerializer.serializable_filters.should == [:a, :c]
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

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