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