Closed MrDys closed 12 years ago
Original reporter: jrochkind
jkeck: Re-write to SMS/Email has resolved this issue.
jkeck: There is a remote branch that has a non-marc email export in it. Since this error appears to be on the marc records then this shouldn't be a problem any longer. I have removed the calls to pending() from those specs and they are passing locally. If this branch gets merged into master and nobody reports the failures again we can close this ticket.
jkeck: Oh! And it may have been because we needed to call SolrDocument.use_extension( Blacklight::Solr::Document::Marc ) from the failing spec. I found inconsistent passes and failures when fixing the specs to not use MARC anymore and calling SolrDocumnet.use_extension seemed to resolve it.
CODEBASE-227: The three specs below all fail for some people some time, but work for other peopel toher times (Hudson currently has them passing). Me and Jessie have both independently tried to look into it, but been unable to figure out what's going on.
Temporarily commented out with pending() until someone has a chance to look at them.
(the functions tested by these specs (coincidentally?) all use ActionMailer, although there are toher specs testing ActionMailer behavior (I think?) that work fine).
1) ActionView::TemplateError in 'CatalogController send_email_record sms should redirect back to the record upon success' You have a nil object when you didn't expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.[] On line #1 of app/views/record_mailer/sms_record.erb
2) ActionView::TemplateError in 'CatalogController send_email_record email should not give error if no Message paramater is set' You have a nil object when you didn't expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.[] On line #1 of app/views/record_mailer/email_record.erb
3) ActionView::TemplateError in 'CatalogController send_email_record email should redirect back to the record upon success' You have a nil object when you didn't expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.[] On line #1 of app/views/record_mailer/email_record.erb
Finished in 10.148066 seconds