Submitting work#19
Submitting work#19mikeadeleke wants to merge 3 commits intoRubyoffRails:masterfrom mikeadeleke:master
Conversation
|
If you run your tests, you get:
So, you can't include Food, which is a class. If you want to have access to food, you can access it later Second, panda.should_receive(:eat).with(:foodbarge)Panda's aren't going to eat a foodbarge... But the foodbarge is going to give the panda a food that it should eat. maybe you can test that the panda is full after visiting the foodbarge? |
|
I know I'm close now. Is it a good idea to add a visit method? I think I can simplify this |
|
Tell me more about the Also -- don't use "stub" in your regular code. It might work locally, but in production, rspec wouldn't be loaded and would cause a load error. (specifically, MethodMissing) |
|
So my visit method would show the panda visiting the foodbarge. After which, the panda becomes full. |
|
Hmm, ok, so let's say in your Zoo you knew about all of the animals in it. If you had a |
|
Yeah that sounds good. I think I know where you're going with this but not yet connecting the dots |
2 Questions