Skip to content

Commit

Permalink
Update rental_spec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
ishimwepati committed Oct 27, 2023
1 parent 53d60ae commit 7434e7d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions spec/rental_spec.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
require './rental'

describe Rental do
let(:book) { double('Book') }
let(:person) { double('Person') }

before do
allow(book).to receive(:rentals).and_return([]) # Configure book double to respond to rentals method
allow(person).to receive(:rentals).and_return([]) # Configure person double to respond to rentals method
end
let(:book) { double('Book', rentals: []) }
let(:person) { double('Person', rentals: []) }

subject(:rental) { described_class.new('2023-10-26', book, person) }

Expand Down

0 comments on commit 7434e7d

Please sign in to comment.