diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-10-24 16:19:22 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-12-04 09:32:42 +0000 |
commit | 4b2e3ef0b6f5b881597242a4afe1404415256f3b (patch) | |
tree | b2317647312a8960a988e61cc8e1b704d3a92bc2 /spec/controllers/track_controller_spec.rb | |
parent | cf11b959899d54cf3c7f4e018f11c2c89c83d4af (diff) |
Make method names for finding existing objects clearer
They're not finding by the existing object, they're finding an existing
object.
Diffstat (limited to 'spec/controllers/track_controller_spec.rb')
-rw-r--r-- | spec/controllers/track_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/track_controller_spec.rb b/spec/controllers/track_controller_spec.rb index 57d084f6b..40865d2b9 100644 --- a/spec/controllers/track_controller_spec.rb +++ b/spec/controllers/track_controller_spec.rb @@ -10,7 +10,7 @@ describe TrackController, "when making a new track on a request" do :tracking_user_id= => nil) TrackThing.stub!(:create_track_for_request).and_return(@track_thing) TrackThing.stub!(:create_track_for_search_query).and_return(@track_thing) - TrackThing.stub!(:find_by_existing_track).and_return(nil) + TrackThing.stub!(:find_existing).and_return(nil) InfoRequest.stub!(:find_by_url_title!) do |url_title| if url_title == "myrequest" @ir |