Skip to content

Instantly share code, notes, and snippets.

@ramhoj
Created April 27, 2010 12:55
Show Gist options
  • Save ramhoj/380699 to your computer and use it in GitHub Desktop.
Save ramhoj/380699 to your computer and use it in GitHub Desktop.
1)
'Patient#past_follow_ups with a follow up in the past returns the past follow up' FAILED
expected: [#<Communication _id: 4bd6c993f7e2f01471003ed1, label: "Fern F Block", pdf_filename: nil, report_start_date: nil, body: nil, parent_communication_id: nil, campaign_id: nil, delivery_method: "Phone", completed_comment: nil, occurred_at: nil, imported: false, patient_id: "4bd6c993f7e2f01471003ecf", reviewed: false, intervention_id: nil, follow_up_date_and_time: Tue Apr 27 12:00:00 UTC 2010, document_template_id: nil, description: "Technician scheduled follow up call.", delivered_by_id: nil, target: "4bd6c993f7e2f01471003ecf", organization_id: "4bd6c96ff7e2f01471001cd8", scheduled_at: nil, report_end_date: nil, status: "unsent", polling_token: nil, managed_by_pharmmd: true, status_message: nil, target_type: "Patient">],
got: [] (using ==)
./spec/models/patient_spec.rb:840:
2)
'Patient#past_follow_ups with follow ups in the future & past returns the past follow up' FAILED
expected: [#<Communication _id: 4bd6c993f7e2f01471003ed4, label: "Fern F Block", pdf_filename: nil, report_start_date: nil, body: nil, parent_communication_id: nil, campaign_id: nil, delivery_method: "Phone", completed_comment: nil, occurred_at: nil, imported: false, patient_id: "4bd6c993f7e2f01471003ed2", reviewed: false, intervention_id: nil, follow_up_date_and_time: Tue Apr 27 12:00:00 UTC 2010, document_template_id: nil, description: "Technician scheduled follow up call.", delivered_by_id: nil, target: "4bd6c993f7e2f01471003ed2", organization_id: "4bd6c96ff7e2f01471001cd8", scheduled_at: nil, report_end_date: nil, status: "unsent", polling_token: nil, managed_by_pharmmd: true, status_message: nil, target_type: "Patient">],
got: [] (using ==)
./spec/models/patient_spec.rb:852:
3)
'Patient#past_follow_ups with follow up exactly now returns the current follow up' FAILED
expected: [#<Communication _id: 4bd6c993f7e2f01471003edc, label: "Fern F Block", pdf_filename: nil, report_start_date: nil, body: nil, parent_communication_id: nil, campaign_id: nil, delivery_method: "Phone", completed_comment: nil, occurred_at: nil, imported: false, patient_id: "4bd6c993f7e2f01471003eda", reviewed: false, intervention_id: nil, follow_up_date_and_time: Tue Apr 27 13:00:00 UTC 2010, document_template_id: nil, description: "Technician scheduled follow up call.", delivered_by_id: nil, target: "4bd6c993f7e2f01471003eda", organization_id: "4bd6c96ff7e2f01471001cd8", scheduled_at: nil, report_end_date: nil, status: "unsent", polling_token: nil, managed_by_pharmmd: true, status_message: nil, target_type: "Patient">],
got: [] (using ==)
./spec/models/patient_spec.rb:865:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment