diff options
Diffstat (limited to 'spec/controllers/track_controller_spec.rb')
| -rw-r--r-- | spec/controllers/track_controller_spec.rb | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/controllers/track_controller_spec.rb b/spec/controllers/track_controller_spec.rb index 38a447640..0dc5db607 100644 --- a/spec/controllers/track_controller_spec.rb +++ b/spec/controllers/track_controller_spec.rb @@ -25,7 +25,7 @@ describe TrackController, "when making a new track on a request" do          response.should redirect_to(:controller => 'user', :action => 'signin', :token => post_redirect.token)      end -    it "should save the track and redirect if you are logged in " do +    it "should save the track and redirect if you are logged in" do          session[:user_id] = @user.id          @track_thing.should_receive(:save!)          get :track_request, :url_title => @ir.url_title, :feed => 'track' @@ -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  | 
