diff options
Diffstat (limited to 'spec/models/track_thing_spec.rb')
-rw-r--r-- | spec/models/track_thing_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
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 |