Sha256: 523c1b44dcfafa9bfb3b35c0d30db2d5ec04063942eb46f117521ff34fc9f542

Contents?: true

Size: 434 Bytes

Versions: 7

Compression:

Stored size: 434 Bytes

Contents

require 'spec_helper'

describe Draper::CollectionDecorator do
  describe "#active_model_serializer" do
    it "returns ActiveModel::Serializer::CollectionSerializer" do
      collection_decorator  = Draper::CollectionDecorator.new([])
      collection_serializer = ActiveModel::Serializer.serializer_for(collection_decorator)

      expect(collection_serializer).to be ActiveModel::Serializer::CollectionSerializer
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
draper-4.0.2 spec/dummy/spec/decorators/active_model_serializers_spec.rb
draper-4.0.1 spec/dummy/spec/decorators/active_model_serializers_spec.rb
draper-4.0.0 spec/dummy/spec/decorators/active_model_serializers_spec.rb
draper-3.1.0 spec/dummy/spec/decorators/active_model_serializers_spec.rb
draper-3.0.1 spec/dummy/spec/decorators/active_model_serializers_spec.rb
draper-3.0.0 spec/dummy/spec/decorators/active_model_serializers_spec.rb
draper-3.0.0.pre1 spec/dummy/spec/decorators/active_model_serializers_spec.rb