Sha256: 8598f743688023eb37ea2dac2ca601b5afd5922ead9de3283833e5b8434536ef
Contents?: true
Size: 589 Bytes
Versions: 7
Compression:
Stored size: 589 Bytes
Contents
require 'test_helper' module ActiveModel class Serializer class OptionsTest < ActiveSupport::TestCase def setup @profile = Profile.new(name: 'Name 1', description: 'Description 1') end def test_options_are_accessible @profile_serializer = ProfileSerializer.new(@profile, my_options: :accessible) assert @profile_serializer.arguments_passed_in? end def test_no_option_is_passed_in @profile_serializer = ProfileSerializer.new(@profile) refute @profile_serializer.arguments_passed_in? end end end end
Version data entries
7 entries across 7 versions & 1 rubygems