diff options
Diffstat (limited to 'test/controllers')
| -rw-r--r-- | test/controllers/admin/comments_controller_test.rb | 8 | ||||
| -rw-r--r-- | test/controllers/admin/quotes_controller_test.rb | 13 | ||||
| -rw-r--r-- | test/controllers/comments_controller_test.rb | 8 | ||||
| -rw-r--r-- | test/controllers/quotes_controller_test.rb | 18 | ||||
| -rw-r--r-- | test/controllers/webmentions_controller_test.rb | 8 |
5 files changed, 55 insertions, 0 deletions
| diff --git a/test/controllers/admin/comments_controller_test.rb b/test/controllers/admin/comments_controller_test.rb new file mode 100644 index 0000000..33f1a47 --- /dev/null +++ b/test/controllers/admin/comments_controller_test.rb | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | require "test_helper" | ||
| 2 | |||
| 3 | class Admin::CommentsControllerTest < ActionDispatch::IntegrationTest | ||
| 4 | test "should get index" do | ||
| 5 | get admin_comments_index_url | ||
| 6 | assert_response :success | ||
| 7 | end | ||
| 8 | end | ||
| diff --git a/test/controllers/admin/quotes_controller_test.rb b/test/controllers/admin/quotes_controller_test.rb new file mode 100644 index 0000000..4f5939b --- /dev/null +++ b/test/controllers/admin/quotes_controller_test.rb | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | require "test_helper" | ||
| 2 | |||
| 3 | class Admin::QuotesControllerTest < ActionDispatch::IntegrationTest | ||
| 4 | test "should get index" do | ||
| 5 | get admin_quotes_index_url | ||
| 6 | assert_response :success | ||
| 7 | end | ||
| 8 | |||
| 9 | test "should get pending" do | ||
| 10 | get admin_quotes_pending_url | ||
| 11 | assert_response :success | ||
| 12 | end | ||
| 13 | end | ||
| diff --git a/test/controllers/comments_controller_test.rb b/test/controllers/comments_controller_test.rb new file mode 100644 index 0000000..3bcb0dc --- /dev/null +++ b/test/controllers/comments_controller_test.rb | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | require "test_helper" | ||
| 2 | |||
| 3 | class CommentsControllerTest < ActionDispatch::IntegrationTest | ||
| 4 | test "should get create" do | ||
| 5 | get comments_create_url | ||
| 6 | assert_response :success | ||
| 7 | end | ||
| 8 | end | ||
| diff --git a/test/controllers/quotes_controller_test.rb b/test/controllers/quotes_controller_test.rb new file mode 100644 index 0000000..a085d40 --- /dev/null +++ b/test/controllers/quotes_controller_test.rb | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | require "test_helper" | ||
| 2 | |||
| 3 | class QuotesControllerTest < ActionDispatch::IntegrationTest | ||
| 4 | test "should get index" do | ||
| 5 | get quotes_index_url | ||
| 6 | assert_response :success | ||
| 7 | end | ||
| 8 | |||
| 9 | test "should get show" do | ||
| 10 | get quotes_show_url | ||
| 11 | assert_response :success | ||
| 12 | end | ||
| 13 | |||
| 14 | test "should get new" do | ||
| 15 | get quotes_new_url | ||
| 16 | assert_response :success | ||
| 17 | end | ||
| 18 | end | ||
| diff --git a/test/controllers/webmentions_controller_test.rb b/test/controllers/webmentions_controller_test.rb new file mode 100644 index 0000000..cc7bb42 --- /dev/null +++ b/test/controllers/webmentions_controller_test.rb | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | require "test_helper" | ||
| 2 | |||
| 3 | class WebmentionsControllerTest < ActionDispatch::IntegrationTest | ||
| 4 | test "should get create" do | ||
| 5 | get webmentions_create_url | ||
| 6 | assert_response :success | ||
| 7 | end | ||
| 8 | end | ||
