Mercurial > rsstweet
annotate test/controllers/tweets_controller_test.rb @ 53:d5c7d7714ed8
Update gems.
author | nanaya <me@myconan.net> |
---|---|
date | Wed, 17 Jun 2015 14:54:01 +0900 |
parents | 8983c426e256 |
children | 8f68ca606099 |
rev | line source |
---|---|
19 | 1 require "test_helper" |
15 | 2 |
3 class TweetsControllerTest < ActionController::TestCase | |
4 test "should get show" do | |
5 get :show, :id => "edogawa_test", :format => :atom | |
6 assert_response :success | |
7 end | |
38
9e03bbbb1d43
Move static#index to tweet#index.
edogawaconan <me@myconan.net>
parents:
19
diff
changeset
|
8 |
48
8983c426e256
Prevent exploding on empty timeline.
nanaya <me@myconan.net>
parents:
38
diff
changeset
|
9 test "does not explode on empty timeline" do |
8983c426e256
Prevent exploding on empty timeline.
nanaya <me@myconan.net>
parents:
38
diff
changeset
|
10 get :show, :id => "nanaya_t_empty", :format => :atom |
8983c426e256
Prevent exploding on empty timeline.
nanaya <me@myconan.net>
parents:
38
diff
changeset
|
11 assert_response :success |
8983c426e256
Prevent exploding on empty timeline.
nanaya <me@myconan.net>
parents:
38
diff
changeset
|
12 end |
8983c426e256
Prevent exploding on empty timeline.
nanaya <me@myconan.net>
parents:
38
diff
changeset
|
13 |
38
9e03bbbb1d43
Move static#index to tweet#index.
edogawaconan <me@myconan.net>
parents:
19
diff
changeset
|
14 test "should get index" do |
9e03bbbb1d43
Move static#index to tweet#index.
edogawaconan <me@myconan.net>
parents:
19
diff
changeset
|
15 get :index |
9e03bbbb1d43
Move static#index to tweet#index.
edogawaconan <me@myconan.net>
parents:
19
diff
changeset
|
16 assert_response :success |
9e03bbbb1d43
Move static#index to tweet#index.
edogawaconan <me@myconan.net>
parents:
19
diff
changeset
|
17 end |
15 | 18 end |