Guest User

Untitled

a guest
Jan 14th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. context "delivering a blob of timeslice-specific animal and procedure data" do
  2.  
  3. should "exclude animals that are currently in use" do
  4. real_controller.override(mocks(:internalizer, :availability_source))
  5. availability = flexmock("availability")
  6.  
  7. params = { 'one or more timeslice params' => "with their values", # <<<< New data
  8. 'ignoring' => 'reservation id' }
  9. during {
  10. get '/json/animals_and_procedures_blob', params
  11.  
  12. }.behold! {
  13. @internalizer.should_receive(:make_timeslice).once.
  14. with(params). # <<<< Different data for conversion
  15. and_return("timeslice")
  16. # ... everything else is the same ...
  17. }
  18. # ... assertions about the result
  19. end
  20. end
Add Comment
Please, Sign In to add comment