Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F62643079
jobs_controller_test.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, May 14, 13:34
Size
1 KB
Mime Type
text/x-c++
Expires
Thu, May 16, 13:34 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17671823
Attached To
R5853 genocrunch-2.1
jobs_controller_test.rb
View Options
require 'test_helper'
class JobsControllerTest < ActionController::TestCase
setup do
@job = jobs(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:jobs)
end
test "should get new" do
get :new
assert_response :success
end
test "should create job" do
assert_difference('Job.count') do
post :create, job: { input: @job.input, map: @job.map, name: @job.name, output: @job.output, params: @job.params, status: @job.status }
end
assert_redirected_to job_path(assigns(:job))
end
test "should show job" do
get :show, id: @job
assert_response :success
end
test "should get edit" do
get :edit, id: @job
assert_response :success
end
test "should update job" do
patch :update, id: @job, job: { input: @job.input, map: @job.map, name: @job.name, output: @job.output, params: @job.params, status: @job.status }
assert_redirected_to job_path(assigns(:job))
end
test "should destroy job" do
assert_difference('Job.count', -1) do
delete :destroy, id: @job
end
assert_redirected_to jobs_path
end
end
Event Timeline
Log In to Comment