Skip to content

Commit

Permalink
Fixed specs
Browse files Browse the repository at this point in the history
  • Loading branch information
EugZol committed Oct 7, 2023
1 parent 6a015b0 commit 2df0f0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/transaction_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def send_email
Class.new do
include Datacaster::Transaction

perform do
perform_partial do
steps(
transformer(:unwrap),
caster(:typecast),
Expand All @@ -103,7 +103,7 @@ def unwrap(x)
end

def typecast(x)
Datacaster.partial_schema do
Datacaster.schema do
hash_schema(name: string, email: string)
end.(x)
end
Expand All @@ -115,7 +115,7 @@ def send_email(email)

expect(tx.(name: 'John', email: '[email protected]').to_dry_result).to eq Success(
name: 'John',
email: {address: '[email protected]', result: true}
email: {address: '[email protected]', result: true, id: 123}
)
end
end

0 comments on commit 2df0f0b

Please sign in to comment.