This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 [email protected] | |
Net::SMTPFatalError (550 5.1.1 <[email protected]>... User unknown | |
): | |
/usr/local/lib/ruby/1.8/net/smtp.rb:930:in `check_response' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer