diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-02-03 22:36:54 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-02-03 22:36:54 +0000 |
commit | ead0b3bcc458cec61c8d1d157a17d82e393c5434 (patch) | |
tree | bd0f8b9586a09177a1f29a66241496e385e54f9c /spec/controllers/track_controller_spec.rb | |
parent | 8584824006b987fb260636fe65ff525f3b2acf52 (diff) |
Return 404 for /feed/user/no_such_user
Fixes #407.
Diffstat (limited to 'spec/controllers/track_controller_spec.rb')
-rw-r--r-- | spec/controllers/track_controller_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/controllers/track_controller_spec.rb b/spec/controllers/track_controller_spec.rb index ee974dedd..0dc5db607 100644 --- a/spec/controllers/track_controller_spec.rb +++ b/spec/controllers/track_controller_spec.rb @@ -134,6 +134,11 @@ describe TrackController, "when viewing RSS feed for a track" do assigns[:xapian_object].results[2][:model].should == info_request_events(:useless_outgoing_message_event) # created_at 2007-10-14 10:41:12.686264 end + it "should return NotFound for a non-existent user" do + lambda { + get :track_user, :feed => 'feed', :url_name => "there_is_no_such_user" + }.should raise_error(ActiveRecord::RecordNotFound) + end end describe TrackController, "when viewing JSON version of a track feed" do |