From 3beac769bbb92530b51250d871d350f4d85d8db5 Mon Sep 17 00:00:00 2001 From: francis Date: Fri, 12 Sep 2008 08:26:04 +0000 Subject: 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. --- spec/controllers/track_controller_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/controllers/track_controller_spec.rb') 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 -- cgit v1.2.3