diff options
author | francis <francis> | 2008-08-15 00:50:32 +0000 |
---|---|---|
committer | francis <francis> | 2008-08-15 00:50:32 +0000 |
commit | 42ef4df2132f6e333711c7c339037720c0c696be (patch) | |
tree | bfb9e67ea494cce3fefdffed0e407c1aca7b5097 /spec/controllers/track_controller_spec.rb | |
parent | 45a3949b32ac0de93ebc8aa0b63c3976a2926542 (diff) |
Fixture for comments, and fix most tests relating to it.
Diffstat (limited to 'spec/controllers/track_controller_spec.rb')
-rw-r--r-- | spec/controllers/track_controller_spec.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/controllers/track_controller_spec.rb b/spec/controllers/track_controller_spec.rb index 21b9c2e7c..ce3528812 100644 --- a/spec/controllers/track_controller_spec.rb +++ b/spec/controllers/track_controller_spec.rb @@ -58,7 +58,7 @@ end describe TrackController, "when viewing RSS feed for a track" do integrate_views - fixtures :info_requests, :outgoing_messages, :incoming_messages, :info_request_events, :users, :track_things + fixtures :info_requests, :outgoing_messages, :incoming_messages, :info_request_events, :users, :track_things, :comments, :public_bodies it "should get the RSS feed" do track_thing = track_things(:track_fancy_dog_request) @@ -67,10 +67,11 @@ describe TrackController, "when viewing RSS feed for a track" do response.should render_template('track/atom_feed') # XXX should check it is an atom.builder type being rendered, not sure how to - assigns[:xapian_object].matches_estimated.should == 2 - assigns[:xapian_object].results.size.should == 2 - assigns[:xapian_object].results[0][:model].should == info_request_events(:useless_incoming_message_event) - assigns[:xapian_object].results[1][:model].should == info_request_events(:useless_outgoing_message_event) + 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) end end |