about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/controllers/admin/blogs_controller_test.rb19
-rw-r--r--test/controllers/admin/dashboard_controller_test.rb9
2 files changed, 28 insertions, 0 deletions
diff --git a/test/controllers/admin/blogs_controller_test.rb b/test/controllers/admin/blogs_controller_test.rb new file mode 100644 index 0000000..5b62eff --- /dev/null +++ b/test/controllers/admin/blogs_controller_test.rb
@@ -0,0 +1,19 @@
1require 'test_helper'
2
3class Admin::BlogsControllerTest < ActionDispatch::IntegrationTest
4 test "should get index" do
5 get admin_blogs_index_url
6 assert_response :success
7 end
8
9 test "should get new" do
10 get admin_blogs_new_url
11 assert_response :success
12 end
13
14 test "should get edit" do
15 get admin_blogs_edit_url
16 assert_response :success
17 end
18
19end
diff --git a/test/controllers/admin/dashboard_controller_test.rb b/test/controllers/admin/dashboard_controller_test.rb new file mode 100644 index 0000000..42bacb9 --- /dev/null +++ b/test/controllers/admin/dashboard_controller_test.rb
@@ -0,0 +1,9 @@
1require 'test_helper'
2
3class Admin::DashboardControllerTest < ActionDispatch::IntegrationTest
4 test "should get index" do
5 get admin_dashboard_index_url
6 assert_response :success
7 end
8
9end