Mercurial > rsstweet
comparison 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 |
comparison
equal
deleted
inserted
replaced
47:e5082c4c234d | 48:8983c426e256 |
---|---|
4 test "should get show" do | 4 test "should get show" do |
5 get :show, :id => "edogawa_test", :format => :atom | 5 get :show, :id => "edogawa_test", :format => :atom |
6 assert_response :success | 6 assert_response :success |
7 end | 7 end |
8 | 8 |
9 test "does not explode on empty timeline" do | |
10 get :show, :id => "nanaya_t_empty", :format => :atom | |
11 assert_response :success | |
12 end | |
13 | |
9 test "should get index" do | 14 test "should get index" do |
10 get :index | 15 get :index |
11 assert_response :success | 16 assert_response :success |
12 end | 17 end |
13 end | 18 end |