Skip to content

Commit

Permalink
Fix specs for dumping field of custom type
Browse files Browse the repository at this point in the history
  • Loading branch information
andrykonchin committed Jan 13, 2025
1 parent f2bc707 commit 89a0854
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/fixtures/dumping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def self.dynamoid_dump(user)
end

def self.dynamoid_load(string)
User.new(string.to_s)
UserValue.new(string.to_s)
end
end

Expand All @@ -87,8 +87,8 @@ def self.dynamoid_dump(user)
end

def self.dynamoid_load(array)
array = array.name.split if array.is_a?(User)
User.new(array.join(' '))
array = array.name.split if array.is_a?(UserValue)
UserValue.new(array.join(' '))
end

def self.dynamoid_field_type
Expand Down

0 comments on commit 89a0854

Please sign in to comment.