Sha256: dd3d78b457b948025451a149fb2cbaa2485b389617080551657ca1f0af6fedc1
Contents?: true
Size: 417 Bytes
Versions: 2
Compression:
Stored size: 417 Bytes
Contents
# frozen_string_literal: true require 'test_helper' module ActiveModel class Serializer class FieldsetTest < ActiveSupport::TestCase def test_fieldset_with_hash fieldset = ActiveModel::Serializer::Fieldset.new('post' => %w(id title), 'comment' => ['body']) expected = { post: [:id, :title], comment: [:body] } assert_equal(expected, fieldset.fields) end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
active_model_serializers_custom-0.10.90 | test/serializers/fieldset_test.rb |
active_model_serializers-0.10.9 | test/serializers/fieldset_test.rb |