Created
March 30, 2013 15:48
-
-
Save chrislerum/5277179 to your computer and use it in GitHub Desktop.
output for `rake db:reset` - crashing on this line in seeds file (trying to notify client?)
patient.bp_readings.create(systolic: 120, diastolic: 80, reading_time: Time.now, pulse: 60)
This file contains hidden or 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
rake aborted!Real HTTP connections are disabled. Unregistered request: POST http://api.pusherapp.com/apps/40289/events?auth_key=8c6d474dc6ecd0cdba44&auth_signature=8d8db02c047c6b42e1edaed0833e3477ce2e593f65fd7c4f0c205d6eb73d1494&auth_timestamp=1364658067&auth_version=1.0&body_md5=e35531fa26834340beca8b09a3e2fc55 with body '{"name":"created","channels":["patient_1_bpReading"],"data":"{\"id\":1,\"systolic\":120,\"diastolic\":80,\"reading_time\":\"2013-03-30T15:41:07Z\",\"risk_threshold\":{\"risk\":3,\"message\":\"Normal\",\"extended_message\":\"Your Blood Pressure is Normal. Your blood pressure will change a little over your whole pregnancy. This is perfectly normal. The pregnancy hormone progesterone relaxes the walls of your blood vessels. This may make your blood pressure fall during your first and second trimesters. This lower blood pressure may make you feel faint if you stand for too long or get up quickly. \"},\"pulse\":60}"}' with headers {'Accept'=>'*/*', 'Content-Type'=>'application/json', 'User-Agent'=>'Ruby'}You can stub this request with the following snippet: | |
stub_request(:post, "http://api.pusherapp.com/apps/40289/events?auth_key=8c6d474dc6ecd0cdba44&auth_signature=8d8db02c047c6b42e1edaed0833e3477ce2e593f65fd7c4f0c205d6eb73d1494&auth_timestamp=1364658067&auth_version=1.0&body_md5=e35531fa26834340beca8b09a3e2fc55"). with(:body => "{\"name\":\"created\",\"channels\":[\"patient_1_bpReading\"],\"data\":\"{\\\"id\\\":1,\\\"systolic\\\":120,\\\"diastolic\\\":80,\\\"reading_time\\\":\\\"2013-03-30T15:41:07Z\\\",\\\"risk_threshold\\\":{\\\"risk\\\":3,\\\"message\\\":\\\"Normal\\\",\\\"extended_message\\\":\\\"Your Blood Pressure is Normal. Your blood pressure will change a little over your whole pregnancy. This is perfectly normal. The pregnancy hormone progesterone relaxes the walls of your blood vessels. This may make your blood pressure fall during your first and second trimesters. This lower blood pressure may make you feel faint if you stand for too long or get up quickly. \\\"},\\\"pulse\\\":60}\"}", | |
:headers => {'Accept'=>'*/*', 'Content-Type'=>'application/json', 'User-Agent'=>'Ruby'}). | |
to_return(:status => 200, :body => "", :headers => {}) | |
============================================================ | |
/Users/Nikola/code/yeti-media/GestInTime/app/models/bp_reading.rb:37:in `notify_client' | |
/Users/Nikola/code/yeti-media/GestInTime/db/seeds.rb:56:in `block in <top (required)>' | |
/Users/Nikola/code/yeti-media/GestInTime/db/seeds.rb:39:in `<top (required)>' | |
Tasks: TOP => db:setup => db:seed | |
(See full trace by running task with --trace) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment