summaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-26 10:48:08 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-26 10:48:08 +0100
commitffaa80e8d46b3b6b7597af6f157724005f48bae4 (patch)
tree0ba02970c4ce7a30d2859b01d9121fbf04cd5c75 /test/functional
parent0442cd19bc9383669b506185356227361a16e442 (diff)
RestoreJob scaffold
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/restore_jobs_controller_test.rb49
1 files changed, 49 insertions, 0 deletions
diff --git a/test/functional/restore_jobs_controller_test.rb b/test/functional/restore_jobs_controller_test.rb
new file mode 100644
index 0000000..bd06b25
--- /dev/null
+++ b/test/functional/restore_jobs_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class RestoreJobsControllerTest < ActionController::TestCase
+ setup do
+ @restore_job = restore_jobs(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:restore_jobs)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create restore_job" do
+ assert_difference('RestoreJob.count') do
+ post :create, restore_job: @restore_job.attributes
+ end
+
+ assert_redirected_to restore_job_path(assigns(:restore_job))
+ end
+
+ test "should show restore_job" do
+ get :show, id: @restore_job.to_param
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, id: @restore_job.to_param
+ assert_response :success
+ end
+
+ test "should update restore_job" do
+ put :update, id: @restore_job.to_param, restore_job: @restore_job.attributes
+ assert_redirected_to restore_job_path(assigns(:restore_job))
+ end
+
+ test "should destroy restore_job" do
+ assert_difference('RestoreJob.count', -1) do
+ delete :destroy, id: @restore_job.to_param
+ end
+
+ assert_redirected_to restore_jobs_path
+ end
+end