- Ruby
- Rspec
def price_of dish
@menu[dish]
end
let(:order ) { double :order, items: { :burger => 9.99 } }
let(:notifier ) { double :notifier, notify: nil }
let(:message_centre) { double :message_centre, process: nil }
I enjoyed mocking and stubbing the Till class!
SOLID principles and BDD clicked for me with this project