Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- context "delivering a blob of timeslice-specific animal and procedure data" do
- should "exclude animals that are currently in use" do
- real_controller.override(mocks(:internalizer, :availability_source))
- availability = flexmock("availability")
- params = { 'one or more timeslice params' => "with their values", # <<<< New data
- 'ignoring' => 'reservation id' }
- during {
- get '/json/animals_and_procedures_blob', params
- }.behold! {
- @internalizer.should_receive(:make_timeslice).once.
- with(params). # <<<< Different data for conversion
- and_return("timeslice")
- # ... everything else is the same ...
- }
- # ... assertions about the result
- end
- end
Add Comment
Please, Sign In to add comment