summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2011-08-20 12:26:41 +0200
committerAlex Legler <alex@a3li.li>2011-08-20 12:26:41 +0200
commitf632b8226c8f11dbb5a263c34cf5f1d618bdf5ff (patch)
treee4885e213ff500b12d956d20324a310067cd1b7a /test
parentReset vertical align of box header graphics (diff)
downloadglsamaker-f632b8226c8f11dbb5a263c34cf5f1d618bdf5ff.tar.gz
glsamaker-f632b8226c8f11dbb5a263c34cf5f1d618bdf5ff.tar.bz2
glsamaker-f632b8226c8f11dbb5a263c34cf5f1d618bdf5ff.zip
Add BugsController to replace the addbug{,save} hack in GLSAController
Diffstat (limited to 'test')
-rw-r--r--test/functional/bugs_controller_test.rb24
-rw-r--r--test/unit/helpers/bugs_helper_test.rb4
2 files changed, 28 insertions, 0 deletions
diff --git a/test/functional/bugs_controller_test.rb b/test/functional/bugs_controller_test.rb
new file mode 100644
index 0000000..4637e04
--- /dev/null
+++ b/test/functional/bugs_controller_test.rb
@@ -0,0 +1,24 @@
+require 'test_helper'
+
+class BugsControllerTest < ActionController::TestCase
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should get create" do
+ get :create
+ assert_response :success
+ end
+
+ test "should get destroy" do
+ get :destroy
+ assert_response :success
+ end
+
+ test "should get show" do
+ get :show
+ assert_response :success
+ end
+
+end
diff --git a/test/unit/helpers/bugs_helper_test.rb b/test/unit/helpers/bugs_helper_test.rb
new file mode 100644
index 0000000..1f3a2a5
--- /dev/null
+++ b/test/unit/helpers/bugs_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class BugsHelperTest < ActionView::TestCase
+end