mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 14:29:31 +00:00
16 lines
342 B
Ruby
16 lines
342 B
Ruby
require 'test_helper'
|
|
|
|
module ActiveModel
|
|
class Serializer
|
|
class OptionsTest < Minitest::Test
|
|
def setup
|
|
@serializer = ProfileSerializer.new(nil, context: {foo: :bar})
|
|
end
|
|
|
|
def test_custom_options_are_accessible_from_serializer
|
|
assert_equal({foo: :bar}, @serializer.context)
|
|
end
|
|
end
|
|
end
|
|
end
|