diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-07-02 13:03:43 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-07-02 13:03:43 -0400 |
commit | e47e83cf6bded3d1924b4d500193e7876833ef83 (patch) | |
tree | 058f011637e67455dcd8451fbfa784b5883c6f69 /test/controllers/admin | |
parent | 528ccde8915cd1ed7a39e137dd4d98869797956a (diff) | |
download | thoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.tar.gz thoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.tar.bz2 thoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.zip |
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 :(
Diffstat (limited to 'test/controllers/admin')
-rw-r--r-- | test/controllers/admin/blogs_controller_test.rb | 19 | ||||
-rw-r--r-- | test/controllers/admin/dashboard_controller_test.rb | 9 |
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 @@ | |||
1 | require 'test_helper' | ||
2 | |||
3 | class 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 | |||
19 | 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 @@ | |||
1 | require 'test_helper' | ||
2 | |||
3 | class Admin::DashboardControllerTest < ActionDispatch::IntegrationTest | ||
4 | test "should get index" do | ||
5 | get admin_dashboard_index_url | ||
6 | assert_response :success | ||
7 | end | ||
8 | |||
9 | end | ||