Sha256: 696ca3cd5a790f752518013a086f983a63ee3d34ff36e5f7bad38aaabbdefcf5

Contents?: true

Size: 333 Bytes

Versions: 3

Compression:

Stored size: 333 Bytes

Contents

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

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