aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-05-11 10:26:56 +0100
committerSeb Bacon <seb.bacon@gmail.com>2012-05-11 10:26:56 +0100
commiteb8996b0b590117b841fd02d7473dfa10aa133bb (patch)
tree49d4c428f1bc5a59dc239c94103815a3f4ffc81e /spec/models
parent4a1d5613008ecd36769019e622f061fae12d02fa (diff)
Correctly create tracks for searches that are filtered by variety:authority via the search UI
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/track_thing_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/models/track_thing_spec.rb b/spec/models/track_thing_spec.rb
index 93f407475..345629bd6 100644
--- a/spec/models/track_thing_spec.rb
+++ b/spec/models/track_thing_spec.rb
@@ -44,5 +44,10 @@ describe TrackThing, "when tracking changes" do
end
end
+ it "will create an authority-based track when called using a 'bodies' postfix" do
+ track_thing = TrackThing.create_track_for_search_query('fancy dog', 'bodies')
+ track_thing.track_query.should =~ /variety:authority/
+ end
+
end