Slide 314
Slide 314 text
Discovery
describe FeedsAnimals do
Given(:builds_feed_plan) { gimme(BuildsFeedPlan) }
Given(:provides_meal) { gimme(ProvidesMeal) }
!
subject { FeedsAnimals.new(builds_feed_plan, provides_meal) }
!
describe "#feed" do
When(:result) { subject.feed(:walrus, :cheese) }
Then { verify(provides_meal).provide(:cheese, :plan) }
end
end