Skip to content

Instantly share code, notes, and snippets.

View ramhoj's full-sized avatar

Nicklas Ramhöj Holtryd ramhoj

View GitHub Profile
Processing ContactEntriesController#create (for 88.131.104.98 at 2010-01-21 19:19:05) [POST]
Session ID: eaa4edb2a0a7a8da4bc6149b7dbc09a5
Parameters: {"contact_box_id"=>"7", "fields"=>[{"33"=>"test", "22"=>"test", "23"=>"test", "24"=>"", "30"=>"", "31"=>"test", "32"=>"test", "21"=>"test"}]}
Cookie set: tolk=se; path=/
Sent mail to borisch@tapflo.com
Net::SMTPFatalError (550 5.1.1 <borisch@tapflo.com>... User unknown
):
/usr/local/lib/ruby/1.8/net/smtp.rb:930:in `check_response'
class Intervention
include Mongoid::Document
belongs_to :drug_therapy_problem, :inverse_of => :interventions
after_update :im_updated
after_create :im_created
after_save :im_saved
private
RANDOM FAILS:
-----------------------
TEST RUN 1
<no fails>
#TEST RUN 2
1)
'DslRuleExecutor.execute when passing a organization specific rule evals the script only on the patients of the organization' FAILED
expected: "4b6ac9ef98bc1fe9d1000ee5",
$(document).ajaxComplete(function(event, request, options) {
if (request.status == 401) {
window.location = "/user_session/new";
} else if(/^text\/plain/.test(request.getResponseHeader('Content-type'))) {
if(request.responseText == ' ') {
$(document).trigger('close.facybox');
var removeVerify = window.location.href.match(/(^http.*)\?verify=1/);
if (removeVerify)
window.location = removeVerify[1];
else
Feature: Cancel a call in progress
In order to maintain an accurate audit trail
As a Pharmacist/Technician in the middle of an incomplete call on the patient overview page
I want to cancel an in-progress call
- I see a cancel call button next to the begin call button
- clicking the button cancels the current call
- system logs the canceled call
- system does not count as a failed attempt
- patient is no longer checked out to me
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: 4bd
class CallsController < ApplicationController
calls_controller
before_filter :resource, :only => [:create, :destroy]
before_filter :check_for_valid_call, :only => [:update, :destroy, :show]
before_filter :check_for_other_call, :only => [:create]
def create
@patient.calls << PatientCall.new
begin
def test_default_values_are_not_changable_by_the_instances_when_dupable
define_model_class do
set_table_name "users"
default_value_for :username, "hello"
end
user1 = TestClass.new
user1.username << " world"
user2 = TestClass.new
assert_equal("hello", user2.username)
end