aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/track_thing_spec.rb
blob: c6aad08e1634cfa5cf8ff2f67d5d6dadd101d41f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require File.dirname(__FILE__) + '/../spec_helper'

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