Skip to content

Instantly share code, notes, and snippets.

@goyox86
Created May 11, 2011 14:56
Show Gist options
  • Save goyox86/966606 to your computer and use it in GitHub Desktop.
Save goyox86/966606 to your computer and use it in GitHub Desktop.
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'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:47:in `_call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `each'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:19:in `catch'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:19:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/aasm.rb:164:in `aasm_fire_event'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/aasm.rb:53:in `send_referral!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `evaluate_method'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:166:in `call'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:93:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `each'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:276:in `run_callbacks'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:344:in `callback'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:267:in `create'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/base.rb:2927:in `create_or_update_without_callbacks'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:250:in `create_or_update'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/base.rb:2594:in `save_without_validation!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/validations.rb:1100:in `save_without_dirty!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/dirty.rb:87:in `save_without_transactions!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction_without_callback'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/after_commit-1.0.8/lib/after_commit/connection_adapters.rb:12:in `transaction'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:182:in `transaction'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/proxy/create.rb:6:in `result'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:330:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:273:in `create'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:304:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:304:in `default_strategy'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl.rb:20:in `Factory'
./spec/models/referral_spec.rb:16:
2)
ArgumentError in 'Referral shouldn't create a referral when host org has already sent a SharegroupInvite to guest org'
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'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:47:in `_call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `each'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:19:in `catch'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:19:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/aasm.rb:164:in `aasm_fire_event'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/aasm.rb:53:in `send_referral!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `evaluate_method'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:166:in `call'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:93:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `each'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:276:in `run_callbacks'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:344:in `callback'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:267:in `create'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/base.rb:2927:in `create_or_update_without_callbacks'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:250:in `create_or_update'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/base.rb:2594:in `save_without_validation!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/validations.rb:1100:in `save_without_dirty!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/dirty.rb:87:in `save_without_transactions!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction_without_callback'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/after_commit-1.0.8/lib/after_commit/connection_adapters.rb:12:in `transaction'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:182:in `transaction'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/proxy/create.rb:6:in `result'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:330:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:273:in `create'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:304:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:304:in `default_strategy'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl.rb:20:in `Factory'
./spec/models/referral_spec.rb:25:
3)
ArgumentError in 'Referral shouldn't create a referral when guest org has already sent a SharegroupInvite to host org'
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'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:47:in `_call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `each'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:19:in `catch'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:19:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/aasm.rb:164:in `aasm_fire_event'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/aasm.rb:53:in `send_referral!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `evaluate_method'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:166:in `call'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:93:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `each'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:276:in `run_callbacks'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:344:in `callback'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:267:in `create'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/base.rb:2927:in `create_or_update_without_callbacks'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:250:in `create_or_update'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/base.rb:2594:in `save_without_validation!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/validations.rb:1100:in `save_without_dirty!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/dirty.rb:87:in `save_without_transactions!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction_without_callback'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/after_commit-1.0.8/lib/after_commit/connection_adapters.rb:12:in `transaction'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:182:in `transaction'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/proxy/create.rb:6:in `result'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:330:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:273:in `create'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:304:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:304:in `default_strategy'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl.rb:20:in `Factory'
./spec/models/referral_spec.rb:34:
4)
ArgumentError in 'Referral should be acceptable'
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'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:47:in `_call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `each'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:19:in `catch'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:19:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/aasm.rb:164:in `aasm_fire_event'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/aasm.rb:53:in `send_referral!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `evaluate_method'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:166:in `call'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:93:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `each'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:276:in `run_callbacks'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:344:in `callback'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:267:in `create'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/base.rb:2927:in `create_or_update_without_callbacks'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:250:in `create_or_update'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/base.rb:2594:in `save_without_validation!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/validations.rb:1100:in `save_without_dirty!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/dirty.rb:87:in `save_without_transactions!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction_without_callback'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/after_commit-1.0.8/lib/after_commit/connection_adapters.rb:12:in `transaction'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:182:in `transaction'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/proxy/create.rb:6:in `result'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:330:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:273:in `create'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:304:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:304:in `default_strategy'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl.rb:20:in `Factory'
./spec/models/referral_spec.rb:79:
5)
ArgumentError in 'Referral should be rejectable'
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'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:47:in `_call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `each'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:19:in `catch'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:19:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/aasm.rb:164:in `aasm_fire_event'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/aasm.rb:53:in `send_referral!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `evaluate_method'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:166:in `call'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:93:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `each'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:276:in `run_callbacks'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:344:in `callback'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:267:in `create'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/base.rb:2927:in `create_or_update_without_callbacks'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:250:in `create_or_update'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/base.rb:2594:in `save_without_validation!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/validations.rb:1100:in `save_without_dirty!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/dirty.rb:87:in `save_without_transactions!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction_without_callback'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/after_commit-1.0.8/lib/after_commit/connection_adapters.rb:12:in `transaction'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:182:in `transaction'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/proxy/create.rb:6:in `result'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:330:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:273:in `create'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:304:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:304:in `default_strategy'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl.rb:20:in `Factory'
./spec/models/referral_spec.rb:87:
6)
ArgumentError in 'Referral should not be rejectable without reason'
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'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:47:in `_call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `each'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:21:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:19:in `catch'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/state.rb:19:in `call_action'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/aasm.rb:164:in `aasm_fire_event'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aasm-2.2.0/lib/aasm/aasm.rb:53:in `send_referral!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `evaluate_method'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:166:in `call'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:93:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `each'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:92:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:276:in `run_callbacks'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:344:in `callback'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:267:in `create'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/base.rb:2927:in `create_or_update_without_callbacks'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/callbacks.rb:250:in `create_or_update'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/base.rb:2594:in `save_without_validation!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/validations.rb:1100:in `save_without_dirty!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/dirty.rb:87:in `save_without_transactions!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction_without_callback'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/after_commit-1.0.8/lib/after_commit/connection_adapters.rb:12:in `transaction'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:182:in `transaction'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/activerecord-2.3.10/lib/active_record/transactions.rb:200:in `save!'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/proxy/create.rb:6:in `result'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:330:in `run'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:273:in `create'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:304:in `send'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl/factory.rb:304:in `default_strategy'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/factory_girl-1.3.3/lib/factory_girl.rb:20:in `Factory'
./spec/models/referral_spec.rb:96:
7)
'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:
Finished in 66.772524 seconds
201 examples, 7 failures
rake aborted!
Command /Users/goyox86/.rvm/rubies/ruby-1.8.7-p334/bin/ruby -I"lib" "/Users/goyox86/Code/CareShare/vendor/plugins/rspec/bin/spec" "spec/models/address_spec.rb" "spec/models/allergy_record_spec.rb" "spec/models/allergy_spec.rb" "spec/models/cardiovascular_system_spec.rb" "spec/models/careboard_spec.rb" "spec/models/ccr_spec.rb" "spec/models/checkin_organization_spec.rb" "spec/models/comment_spec.rb" "spec/models/constitutional_system_spec.rb" "spec/models/credit_card_spec.rb" "spec/models/credit_spec.rb" "spec/models/crumb_spec.rb" "spec/models/ear_nose_throat_mouth_system_spec.rb" "spec/models/emergency_contact_spec.rb" "spec/models/endocrine_system_spec.rb" "spec/models/eye_sight_system_spec.rb" "spec/models/family_member_spec.rb" "spec/models/fax_block_spec.rb" "spec/models/fax_invite_spec.rb" "spec/models/gastrointestinal_system_spec.rb" "spec/models/general_symptom_spec.rb" "spec/models/genitourinary_system_spec.rb" "spec/models/group_spec.rb" "spec/models/health_conditions_spec.rb" "spec/models/hemolymphatic_system_spec.rb" "spec/models/injury_location_spec.rb" "spec/models/integumentary_system_spec.rb" "spec/models/join_invite_spec.rb" "spec/models/mailer_spec.rb" "spec/models/medication_record_spec.rb" "spec/models/message_spec.rb" "spec/models/musculoskeletal_system_spec.rb" "spec/models/neurological_system_spec.rb" "spec/models/order_spec.rb" "spec/models/organization_spec.rb" "spec/models/pain_spec.rb" "spec/models/patient_checkin_spec.rb" "spec/models/patient_drug_spec.rb" "spec/models/patient_health_condition_spec.rb" "spec/models/patient_injury_spec.rb" "spec/models/patient_policy_spec.rb" "spec/models/patient_profile_spec.rb" "spec/models/patient_relatives_spec.rb" "spec/models/patient_test_result_spec.rb" "spec/models/person_spec.rb" "spec/models/phone_spec.rb" "spec/models/psychiatric_system_spec.rb" "spec/models/referral_spec.rb" "spec/models/residency_spec.rb" "spec/models/respiratory_system_spec.rb" "spec/models/scan_spec.rb" "spec/models/school_spec.rb" "spec/models/sharegroup_invite_spec.rb" "spec/models/symptom_spec.rb" "spec/models/treatment_record_spec.rb" "spec/models/treatment_spec.rb" "spec/models/upload_spec.rb" "spec/models/user_spec.rb" "spec/models/zip_file_spec.rb" --options "/Users/goyox86/Code/CareShare/spec/spec.opts" failed
(See full trace by running task with --trace)
@forgotpw1
Copy link

thanks for the heads up @goyox86 and @boza for fixing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment