diff options
-rw-r--r-- | spec/models/track_mailer_spec.rb | 8 | ||||
-rw-r--r-- | spec/models/track_thing_spec.rb | 16 | ||||
-rw-r--r-- | spec/models/track_things_sent_email_spec.rb | 4 | ||||
-rw-r--r-- | todo.txt | 16 |
4 files changed, 21 insertions, 23 deletions
diff --git a/spec/models/track_mailer_spec.rb b/spec/models/track_mailer_spec.rb new file mode 100644 index 000000000..c948574e2 --- /dev/null +++ b/spec/models/track_mailer_spec.rb @@ -0,0 +1,8 @@ +require File.dirname(__FILE__) + '/../spec_helper' + +describe TrackMailer, "when sending track emails" do + +end + + + diff --git a/spec/models/track_thing_spec.rb b/spec/models/track_thing_spec.rb index 32b5a23d5..c6aad08e1 100644 --- a/spec/models/track_thing_spec.rb +++ b/spec/models/track_thing_spec.rb @@ -1,12 +1,12 @@ require File.dirname(__FILE__) + '/../spec_helper' -describe TrackThing, " when finding existing tracks" do -# it "should find the user when given the right email and password" do -# track_thing = jjo -# users(:silly_emnameem) -# track_things(:track_fancy_dog_search) -# -# found_track = TrackThing.find_by_existing_track() -# end +describe TrackThing, "when tracking changes" do + fixtures :track_things, :users + + it "will find existing tracks which are the same" do + track_thing = TrackThing.create_track_for_search_query('fancy dog') + found_track = TrackThing.find_by_existing_track(users(:silly_name_user), track_thing) + found_track.should == track_things(:track_fancy_dog_search) + end end diff --git a/spec/models/track_things_sent_email_spec.rb b/spec/models/track_things_sent_email_spec.rb new file mode 100644 index 000000000..1f3c5a4e3 --- /dev/null +++ b/spec/models/track_things_sent_email_spec.rb @@ -0,0 +1,4 @@ +require File.dirname(__FILE__) + '/../spec_helper' + +describe TrackThingsSentEmail, "when tracking things sent email" do +end @@ -1,19 +1,6 @@ -CVS ---- - -Bullet list in credits on about page. -Rename rss_at to described_at. -Email alerts based on date of description, not just creation date (so don't -miss things that were created before alert but described only recently) -Tidy up when described vs. newest is used for sort order -Caching of text extracted from attachments, and display in search results. - - - Test: Fix bug as to why "Vacant Council Housing Stock" didn't appear in my email alert - i.e. created at date compared, not described at date. - FOI requests to use to test it ============================== @@ -52,8 +39,6 @@ Blog posts / Wikipedia articles about this request http://reportr.net/2008/04/24/bbc-spent-6m-to-develop-the-iplayer/ Or just look at referrers as Julian says -Check test code coverage again - do we have all models - Advertise WDTK search queries on TWFY Advertise alerts on end pages with WDTK @@ -233,6 +218,7 @@ Quoting fixing TODO: http://www.whatdotheyknow.com/request/40/response/163 - Disclaimer http://www.whatdotheyknow.com/request/265/response/688 - word wrapping http://www.whatdotheyknow.com/request/180/response/482 (charset) + http://www.whatdotheyknow.com/request/576/response/812 Sources of public bodies ======================== |