Skip to content

Commit

Permalink
build service before validating (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tooyosi authored Jun 24, 2024
1 parent a7ddf67 commit 037aaa0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/support/shared_examples_for_services.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@

it 'should validate the schema' do
schema = double create: double
service.build
expect(service.schema_class).to receive(:new).and_return schema
expect(schema.create).to receive(:validate!)
.with(service.rooted_params)
Expand Down

0 comments on commit 037aaa0

Please sign in to comment.