diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-01-19 14:36:06 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-01-19 14:36:06 +0000 |
commit | f4e16a6a5fd363c145a26e91bdf8d87821772f80 (patch) | |
tree | 90a082067f7705d8ad0b5dafba503be85c1716d4 /spec/models/track_thing_spec.rb | |
parent | 63c5ed67bf023852b121993d0fc7ce62e0be1023 (diff) | |
parent | b2618cc78e86176c13e2b4197d56270242680884 (diff) |
Merge branch 'wdtk' of github.com:sebbacon/alaveteli into wdtk
Diffstat (limited to 'spec/models/track_thing_spec.rb')
-rw-r--r-- | spec/models/track_thing_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/models/track_thing_spec.rb b/spec/models/track_thing_spec.rb index 4922a96c7..7891bd229 100644 --- a/spec/models/track_thing_spec.rb +++ b/spec/models/track_thing_spec.rb @@ -28,6 +28,13 @@ describe TrackThing, "when tracking changes" do found_track.should == @track_thing end + it "can display the description of a deleted track_thing" do + track_thing = TrackThing.create_track_for_search_query('fancy dog') + description = track_thing.track_query_description + track_thing.destroy + track_thing.track_query_description.should == description + end + it "will make some sane descriptions of search-based tracks" do tests = [['bob variety:user', "users matching text 'bob'"], ['bob (variety:sent OR variety:followup_sent OR variety:response OR variety:comment) (latest_status:successful OR latest_status:partially_successful OR latest_status:rejected OR latest_status:not_held)', "requests which are successful or unsuccessful or comments matching text 'bob'"], |