Skip to content

Commit

Permalink
update specs to reflect changes to the model
Browse files Browse the repository at this point in the history
  • Loading branch information
ekumachidi committed Apr 26, 2024
1 parent 3148452 commit 99df245
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,11 @@
subject.bookings_subject_id = 2
end

before { allow(Bookings::PlacementDateSubject).to receive(:find_by).and_return('a') }
before { allow(subject).to receive(:find_placement_date_subject).and_return('a') }

specify 'should find the placement date via its id' do
subject.placement_date_subject
expect(Bookings::PlacementDateSubject).to have_received(:find_by).with(
bookings_placement_date_id: 1,
bookings_subject_id: 2
)
expect(subject).to have_received(:find_placement_date_subject)
end
end

Expand Down

0 comments on commit 99df245

Please sign in to comment.