Skip to content

Instantly share code, notes, and snippets.

View goyox86's full-sized avatar

Jose Narvaez goyox86

View GitHub Profile
goyox86@Goyox86s-MacBook ~/Code/CareShare (feature/ccr4r) $ be rake spec:models
(in /Users/goyox86/Code/CareShare)
.................................................................................................................................................................F...................................
1)
NoMethodError in 'Person full address should return org address if im not a patient'
undefined method `memberships' for nil:NilClass
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/whiny_nil.rb:52:in `method_missing'
/Users/goyox86/Code/CareShare/app/models/person.rb:173:in `full_address'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/associations/association_proxy.rb:215:in `send'
# it "should generate a zip file" do
# user = Factory(:user)
# user.person
# file = Tempfile.new('foo')
# Zip::ZipFile.expects(:open).returns(['1'])
# 2.times { File.expects(:open).returns(file) }
# File.expects(:delete).returns('1')
# lambda {
# user.person.get_scans(nil)
# Delayed::Worker.new.work_off
goyox86@Goyox86s-MacBook ~/Code/CareShare (feature/ccr4r) $ be rake spec:models
(in /Users/goyox86/Code/CareShare)
...................................................................................................................................F.................................................................
1)
'Person full address should return org address if im not a patient' FAILED
expected: "1111 11th St<br/> Jupiter, FL, 44568",
got: "No address recorded" (using ==)
./spec/models/person_spec.rb:197:
{ "ccr":"<?xml version="1.0" encoding="UTF-8"?><ContinuityOfCareRecord xmlns="urn:astm-org:CCR">...</ContinuityOfCareRecord>", "id":1 }
<Procedures>
<Procedure>
<DateTime>
<Type><Text>Start date</Text></Type>
<ExactDateTime>2007-04-04T07:00:00Z</ExactDateTime>
</DateTime>
<Description>
<Text>Appendectomy</Text>
<Code>
<Value>144950</Value>
<Procedures>
<Procedure>
<DateTime>
<Type><Text>Start date</Text></Type>
<ExactDateTime>2007-04-04T07:00:00Z</ExactDateTime>
</DateTime>
<Description>
<Text>Appendectomy</Text>
</Description>
<Source>
@goyox86
goyox86 / gist:966606
Created May 11, 2011 14:56
Broken Referral Specs
be rake spec:models
(in /Users/goyox86/Code/CareShare)
.........................................................................FFF...FFF...............................................F.......................................................................
1)
ArgumentError in 'Referral should create a referral and set state to 'sent' if both receiving and sending orgs have a sharegroup'
wrong number of arguments (0 for 1)
/Users/goyox86/Code/CareShare/app/models/referral.rb:136:in `deliver'
/Users/goyox86/Code/CareShare/app/models/referral.rb:136:in `hook_up_caregroup'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:47:in `send'
@goyox86
goyox86 / rails_3_1_beta_1_changes.md
Created May 19, 2011 16:18 — forked from ryanb/rails_3_1_rc4_changes.md
The Changelogs for Rails 3.1 Beta 1

Railties 3.1 Beta 1

  • The -j option of the application generator accepts an arbitrary string. If passed "foo", the gem "foo-rails" is added to the Gemfile, and the application JavaScript manifest requires "foo" and "foo_ujs". As of this writing "prototype-rails" and "jquery-rails" exist and provide those files via the asset pipeline. Default is "jquery". [fxn]

  • jQuery is no longer vendored, it is provided from now on by the jquery-rails gem. [fxn]

  • Prototype and Scriptaculous are no longer vendored, they are provided from now on by the prototype-rails gem. [fxn]

  • The scaffold controller will now produce SCSS file if Sass is available [Prem Sichanugrist]

== AddFakePatient: migrating =================================================
rake aborted!
An error has occurred, all later migrations canceled:
undefined method `family_id' for #<Person:0x10898f388>
(See full trace by running task with --trace)
goyox86@Goyox86s-MacBook ~/Code/CareShare (feature/ccr4r) $ gem list --local
*** LOCAL GEMS ***
aasm (2.2.0)
actionmailer (2.3.10)
actionpack (2.3.10)
active_merchant (1.5.2)
activerecord (2.3.10)
activeresource (2.3.10)