Sha256: 26b768d77c77f2f95e556cac9d554ddf9d4b881c0b227ea0d818fe38fbae7b75
Contents?: true
Size: 315 Bytes
Versions: 2
Compression:
Stored size: 315 Bytes
Contents
describe SolidusJsonApi do describe '.setup' do it 'can set the parent serializer' do class DescendantOfAMS < ActiveModel::Serializer; end described_class.setup { |c| c.parent_serializer = DescendantOfAMS } expect(described_class.parent_serializer).to eql DescendantOfAMS end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_json_api-0.3.1 | spec/lib/solidus_json_api/config_spec.rb |
solidus_json_api-0.3.0 | spec/lib/solidus_json_api/config_spec.rb |