Skip to content

Instantly share code, notes, and snippets.

View goyox86's full-sized avatar

Jose Narvaez goyox86

View GitHub Profile
Goyox86s-MacBook:CareShare goyox86$ bundle exec rake cucumber
(in /Users/goyox86/Code/CareShare)
bundle exec /Users/goyox86/.rvm/rubies/ruby-1.8.7-p334/bin/ruby -I "/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/cucumber-0.10.2/lib:lib" "/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/cucumber-0.10.2/bin/cucumber" --profile default
Using the default profile...
...................................F---.................F---.........................F---.....................F---
(::) failed steps (::)
expected: 401,
got: 200 (using ==)
goyox86@Goyox86s-MacBook ~/Code/CareShare (feature/ccr4r) $ be rake spec:models
(in /Users/goyox86/Code/CareShare)
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/dependencies.rb:469:in `load_missing_constant': uninitialized constant RelativeHealthCondition (NameError)
from /Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/dependencies.rb:106:in `const_missing_not_from_s3_library'
from /Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:206:in `const_missing'
from /Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/dependencies.rb:118:in `const_missing'
from ./spec/models/relative_health_condition_spec.rb:3
from /Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/dependencies.rb:173:in `load_without_new_constant_marking'
from /Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_
<Medications>
<Medication>
<Status><Text>Active</Text></Status>
<DateTime>
<Type><Text>Prescription Date</Text></Type>
<ExactDateTime>2007-04-01T05:00:00Z</ExactDateTime>
</DateTime>
<Source>
<Actor>
<ActorID>Cecil Baker</ActorID>
indexing index 'allergy_record_core'...
ERROR: source 'allergy_record_core_0': unknown type 'mysql'; skipping.
ERROR: index 'allergy_record_core': failed to configure some of the sources, will not index.
distributed index 'allergy_record' can not be directly indexed; skipping.
indexing index 'certificate_core'...
ERROR: source 'certificate_core_0': unknown type 'mysql'; skipping.
ERROR: index 'certificate_core': failed to configure some of the sources, will not index.
distributed index 'certificate' can not be directly indexed; skipping.
indexing index 'group_core'...
ERROR: source 'group_core_0': unknown type 'mysql'; skipping.
<Status><Text>Active</Text></Status>
<DateTime>
<Type><Text>Prescription Date</Text></Type>
<ExactDateTime>2007-04-01T05:00:00Z</ExactDateTime>
</DateTime>
<Source>
<Actor>
<ActorID>Cecil Baker</ActorID>
</Actor>
<ActorRole>Prescribing clinician</ActorRole>
goyox86@Goyox86s-MacBook ~/Code/CareShare (feature/ccr4r) $ be rake spec:ccr
(in /Users/goyox86/Code/CareShare)
running: spec/models/ccr_spec.rb
export RAILS_ENV=test ; script/spec --options spec/spec.opts spec/models/ccr_spec.rb
No description supplied for example declared on ./spec/models/ccr_spec.rb:14
FNo description supplied for example declared on ./spec/models/ccr_spec.rb:16
FNo description supplied for example declared on ./spec/models/ccr_spec.rb:17
FNo description supplied for example declared on ./spec/models/ccr_spec.rb:18
FNo description supplied for example declared on ./spec/models/ccr_spec.rb:19
FNo description supplied for example declared on ./spec/models/ccr_spec.rb:20
Lazy Attributes
Most factory attributes can be added using static values that are evaluated when the factory is defined, but some attributes (such as associations and other attributes that must be dynamically generated) will need values assigned each time an instance is generated. These "lazy" attributes can be added by passing a block instead of a parameter:
Factory.define :user do |u|
# ...
u.activation_code { User.generate_activation_code }
end
<Problems>
<Problem>
<DateTime>
<Type><Text>Start date</Text></Type>
<ExactDateTime>2007-04-04T07:00:00Z</ExactDateTime>
</DateTime>
<Description>
<Text>Aortic valve disorders</Text>
<Code>
<Value>410.10</Value>
ActionView::TemplateError (undefined method `signed_in_at' for #<User:0x10900d778>) on line #3 of app/views/shared/_welcome_message.html.haml:
1:
2:
3: - if current_user.sign_in_count == 1 && Time.now - current_user.signed_in_at < 60
4: :javascript
5: $(document).ready(function() {
6: $.nyroModalManual({
app/views/shared/_welcome_message.html.haml:3:in `_run_haml_app47views47shared47_welcome_message46html46haml_locals_object_welcome_message'
haml (3.0.25) rails/./lib/haml/helpers/action_view_mods.rb:11:in `render'
ActionView::TemplateError (Illegal nesting: nesting within plain text is illegal.) on line #31 of app/views/mailer/send_exhisting_user_invitation.html.haml:
28:
29: case @atype
30: when "patient"
31: = render "patient_invite"
32: when "doctor"
33: = render "doctor_invite"
34: when "staff"
app/views/mailer/send_exhisting_user_invitation.html.haml:31