diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-01-22 17:24:57 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-01-22 17:24:57 +0000 |
commit | 3efcaad4342a345713d8ba90dce6e4df0d73e4c3 (patch) | |
tree | 86d1341a4586ef0372534d9c86a83aae3bb01ee7 /spec/models/info_request_event_spec.rb | |
parent | fc294a8dab42dad75cabcd21e2793d4073d41f79 (diff) |
Improve test isolation
This test was failing if run after, for example, general_controller_spec.rb.
Diffstat (limited to 'spec/models/info_request_event_spec.rb')
-rw-r--r-- | spec/models/info_request_event_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/info_request_event_spec.rb b/spec/models/info_request_event_spec.rb index 63c859007..a75f4b232 100644 --- a/spec/models/info_request_event_spec.rb +++ b/spec/models/info_request_event_spec.rb @@ -75,7 +75,8 @@ describe InfoRequestEvent do 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.should == nil + + 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 |