diff test/controllers/tweets_controller_test.rb @ 48:8983c426e256

Prevent exploding on empty timeline.
author nanaya <me@myconan.net>
date Thu, 23 Apr 2015 16:14:35 +0900
parents 9e03bbbb1d43
children 8f68ca606099
line wrap: on
line diff
--- a/test/controllers/tweets_controller_test.rb	Thu Apr 23 16:05:08 2015 +0900
+++ b/test/controllers/tweets_controller_test.rb	Thu Apr 23 16:14:35 2015 +0900
@@ -6,6 +6,11 @@
     assert_response :success
   end
 
+  test "does not explode on empty timeline" do
+    get :show, :id => "nanaya_t_empty", :format => :atom
+    assert_response :success
+  end
+
   test "should get index" do
     get :index
     assert_response :success