diff options
author | 2020-04-18 02:38:35 +0200 | |
---|---|---|
committer | 2020-04-18 02:50:54 +0200 | |
commit | 35a41e63ebd5f6cf9d17419c150eb53a005d2e87 (patch) | |
tree | e0bcc21bbb1e7e200857cfbd52acb82b008a3a6d /test/functional/admin/templates_controller_test.rb | |
parent | Display version and last update in the footer (diff) | |
download | glsamaker-35a41e63ebd5f6cf9d17419c150eb53a005d2e87.tar.gz glsamaker-35a41e63ebd5f6cf9d17419c150eb53a005d2e87.tar.bz2 glsamaker-35a41e63ebd5f6cf9d17419c150eb53a005d2e87.zip |
Add the initial version of the rewritten glsamaker
The glsamaker has been completly rewritten in go. It is
using postgres instead of mysql now. The look and feel is
based on tyrian.
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'test/functional/admin/templates_controller_test.rb')
-rw-r--r-- | test/functional/admin/templates_controller_test.rb | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/test/functional/admin/templates_controller_test.rb b/test/functional/admin/templates_controller_test.rb deleted file mode 100644 index 8a0459e..0000000 --- a/test/functional/admin/templates_controller_test.rb +++ /dev/null @@ -1,56 +0,0 @@ -require 'test_helper' - -class Admin::TemplatesControllerTest < ActionController::TestCase - setup do - @template = templates(:one) - log_in_as :admin - end - - test "should not grant access to regular users" do - log_in_as :user - get :index - assert_redirected_to :controller => '/index', :action => 'error', :type => 'access' - end - - test "should get index" do - get :index - assert_response :success - assert_not_nil assigns(:templates) - end - - test "should get new" do - get :new - assert_response :success - end - - test "should create admin_template" do - assert_difference('Template.count') do - post :create, template: @template.attributes - end - - assert_redirected_to admin_template_path(assigns(:template)) - end - - test "should show admin_template" do - get :show, :id => @template.to_param - assert_response :success - end - - test "should get edit" do - get :edit, :id => @template.to_param - assert_response :success - end - - test "should update admin_template" do - put :update, :id => @template.to_param, :template => @template.attributes - assert_redirected_to admin_template_path(assigns(:template)) - end - - test "should destroy admin_template" do - assert_difference('Template.count', -1) do - delete :destroy, :id => @template.to_param - end - - assert_redirected_to admin_templates_path - end -end |