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.4.26 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.25 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.24 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.23 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.21 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.20 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.19 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.18 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.17 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.16 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.15 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.14 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.13 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.12 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.11 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.10 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.9 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.8 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.7 spec/serializable/filterable_spec.rb
restpack_serializer-0.4.6 spec/serializable/filterable_spec.rb