Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/serialize-nested-structs' into s…
Browse files Browse the repository at this point in the history
…erialize-nested-structs
  • Loading branch information
tbconroy committed Jul 19, 2024
2 parents 89e7542 + 29f0122 commit 1649f44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/t/struct_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ def test_serializer_returns_deeply_nested_hash_serializer
serializer = City.serializer(:deeply_nested_hash)

assert_kind_of(Typed::HashSerializer, serializer)
assert_equal(true, T.cast(serializer, Typed::HashSerializer).should_serialize_values)
assert(T.cast(serializer, Typed::HashSerializer).should_serialize_values)
end

def test_serializer_returns_hash_serializer
serializer = City.serializer(:hash)

assert_kind_of(Typed::HashSerializer, serializer)
assert_equal(false, T.cast(serializer, Typed::HashSerializer).should_serialize_values)
refute(T.cast(serializer, Typed::HashSerializer).should_serialize_values)
end

def test_serializer_returns_json_serializer
Expand Down

0 comments on commit 1649f44

Please sign in to comment.