Sha256: dbdc5a7f7c98aa81837eef6bb4a64afbd2282c1e4b9d1aa7abfe69cf2ca3a87f

Contents?: true

Size: 302 Bytes

Versions: 8

Compression:

Stored size: 302 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
    expect(CustomSerializer.serializable_filters).to eq([:a, :c])
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
restpack_serializer-0.6.15 spec/serializable/filterable_spec.rb
restpack_serializer-0.6.14 spec/serializable/filterable_spec.rb
restpack_serializer-0.6.13 spec/serializable/filterable_spec.rb
restpack_serializer-0.6.12 spec/serializable/filterable_spec.rb
restpack_serializer-0.6.11 spec/serializable/filterable_spec.rb
restpack_serializer-0.6.10 spec/serializable/filterable_spec.rb
restpack_serializer-0.6.9 spec/serializable/filterable_spec.rb
restpack_serializer-0.6.8 spec/serializable/filterable_spec.rb