Sha256: 9c6579e82c43166d93d9799a56143e114b5d2671dd5b6db117735bb028c8b256

Contents?: true

Size: 349 Bytes

Versions: 4

Compression:

Stored size: 349 Bytes

Contents

require 'spec_helper'

describe StrongPresenter::CollectionPresenter do
  describe "#active_model_serializer" do
    it "returns ActiveModel::ArraySerializer" do
      collection_presenter = StrongPresenter::CollectionPresenter.new([])

      expect(collection_presenter.active_model_serializer).to be ActiveModel::ArraySerializer
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
strong_presenter-0.2.2 spec/dummy/spec/presenters/active_model_serializers_spec.rb
strong_presenter-0.2.1 spec/dummy/spec/presenters/active_model_serializers_spec.rb
strong_presenter-0.2.0 spec/dummy/spec/presenters/active_model_serializers_spec.rb
strong_presenter-0.1.0 spec/dummy/spec/presenters/active_model_serializers_spec.rb