diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-01-23 21:53:10 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-01-23 21:53:10 +0000 |
commit | 0e546a79b205124d7b95b89e4a2e9cc520a4fc10 (patch) | |
tree | 791ae964c0dd4aba79cc9a3a6537db49c594cedf /spec/models/info_request_event_spec.rb | |
parent | 2c97a42455edb338a4ffeb529c9dd08bdf2864e0 (diff) | |
parent | 000a4b3bc2858124301eb36553b018266cfe2cae (diff) |
Merge branch 'release/0.5' into develop
Diffstat (limited to 'spec/models/info_request_event_spec.rb')
-rw-r--r-- | spec/models/info_request_event_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/info_request_event_spec.rb b/spec/models/info_request_event_spec.rb index 5423b8da8..a75f4b232 100644 --- a/spec/models/info_request_event_spec.rb +++ b/spec/models/info_request_event_spec.rb @@ -73,6 +73,14 @@ describe InfoRequestEvent do event.search_text_main.strip.should == "No way! I'm not going to tell you that in a month of Thursdays.\n\nThe Geraldine Quango" end + it 'should get clipped text for incoming messages, and cache it too' do + event = info_request_events(:useless_incoming_message_event) + + event.incoming_message_selective_columns("cached_main_body_text_folded").cached_main_body_text_folded = nil + event.search_text_main(true).strip.should == "No way! I'm not going to tell you that in a month of Thursdays.\n\nThe Geraldine Quango" + event.incoming_message_selective_columns("cached_main_body_text_folded").cached_main_body_text_folded.should_not == nil + end + end |