Sha256: 24233346aa33c1cc65d869fb41cad078cf4162b483be22f6d01f5d4e1c653a64

Contents?: true

Size: 331 Bytes

Versions: 3

Compression:

Stored size: 331 Bytes

Contents

require "spec_helper"
describe SerializerFieldFilter::AllField do
  subject(:filter) { SerializerFieldFilter::AllField.new }
  describe '#root_fields' do
    it { expect(filter.root_fields).to eq(nil) }
  end

  describe '#scope_of' do
    it { expect(filter.scope_of(:authors)).to be_a SerializerFieldFilter::AllField }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
serializer_field_filter-0.0.3 spec/serializer_field_filter/all_field_spec.rb
serializer_field_filter-0.0.2 spec/serializer_field_filter/all_field_spec.rb
serializer_field_filter-0.0.1 spec/serializer_field_filter/all_field_spec.rb