aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/track_controller_spec.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-09-12 08:26:04 +0000
committerfrancis <francis>2008-09-12 08:26:04 +0000
commit3beac769bbb92530b51250d871d350f4d85d8db5 (patch)
treeafb76f2f4b61c3df68917de599cd343f13425d53 /spec/controllers/track_controller_spec.rb
parente366aa57a78d3b2d951bf4630a8d437ab8e18cfd (diff)
Fix bug in call to sort_by_ascending (boolean || true is always true!) in acts_as_xapian
Alter WDTK code to use correct meaning of ascending in Xapian.
Diffstat (limited to 'spec/controllers/track_controller_spec.rb')
-rw-r--r--spec/controllers/track_controller_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/track_controller_spec.rb b/spec/controllers/track_controller_spec.rb
index ce3528812..173ffab7e 100644
--- a/spec/controllers/track_controller_spec.rb
+++ b/spec/controllers/track_controller_spec.rb
@@ -69,9 +69,9 @@ describe TrackController, "when viewing RSS feed for a track" do
assigns[:xapian_object].matches_estimated.should == 3
assigns[:xapian_object].results.size.should == 3
- assigns[:xapian_object].results[0][:model].should == info_request_events(:silly_comment_event)
- assigns[:xapian_object].results[1][:model].should == info_request_events(:useless_incoming_message_event)
- assigns[:xapian_object].results[2][:model].should == info_request_events(:useless_outgoing_message_event)
+ assigns[:xapian_object].results[0][:model].should == info_request_events(:silly_comment_event) # created_at 2008-08-12 23:05:12.500942
+ assigns[:xapian_object].results[1][:model].should == info_request_events(:useless_incoming_message_event) # created_at 2007-11-13 18:09:20.042061
+ assigns[:xapian_object].results[2][:model].should == info_request_events(:useless_outgoing_message_event) # created_at 2007-10-14 10:41:12.686264
end
end