From e47e83cf6bded3d1924b4d500193e7876833ef83 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 2 Jul 2017 13:03:43 -0400 Subject: Created admin panel Currently allows you to create and edit blogs, including associated records. Uses a WYSIWYG editor that allows uploading images. Also included jQuery :( --- test/controllers/admin/blogs_controller_test.rb | 19 +++++++++++++++++++ test/controllers/admin/dashboard_controller_test.rb | 9 +++++++++ 2 files changed, 28 insertions(+) create mode 100644 test/controllers/admin/blogs_controller_test.rb create mode 100644 test/controllers/admin/dashboard_controller_test.rb (limited to 'test') 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 @@ +require 'test_helper' + +class Admin::BlogsControllerTest < ActionDispatch::IntegrationTest + test "should get index" do + get admin_blogs_index_url + assert_response :success + end + + test "should get new" do + get admin_blogs_new_url + assert_response :success + end + + test "should get edit" do + get admin_blogs_edit_url + assert_response :success + end + +end 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 @@ +require 'test_helper' + +class Admin::DashboardControllerTest < ActionDispatch::IntegrationTest + test "should get index" do + get admin_dashboard_index_url + assert_response :success + end + +end -- cgit 1.4.1