Initial commit
This commit is contained in:
45
test/functional/contract_templates_controller_test.rb
Normal file
45
test/functional/contract_templates_controller_test.rb
Normal file
@@ -0,0 +1,45 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ContractTemplatesControllerTest < ActionController::TestCase
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:contract_templates)
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create contract_template" do
|
||||
assert_difference('ContractTemplate.count') do
|
||||
post :create, :contract_template => { }
|
||||
end
|
||||
|
||||
assert_redirected_to contract_template_path(assigns(:contract_template))
|
||||
end
|
||||
|
||||
test "should show contract_template" do
|
||||
get :show, :id => contract_templates(:one).to_param
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get :edit, :id => contract_templates(:one).to_param
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update contract_template" do
|
||||
put :update, :id => contract_templates(:one).to_param, :contract_template => { }
|
||||
assert_redirected_to contract_template_path(assigns(:contract_template))
|
||||
end
|
||||
|
||||
test "should destroy contract_template" do
|
||||
assert_difference('ContractTemplate.count', -1) do
|
||||
delete :destroy, :id => contract_templates(:one).to_param
|
||||
end
|
||||
|
||||
assert_redirected_to contract_templates_path
|
||||
end
|
||||
end
|
||||
45
test/functional/contracts_controller_test.rb
Normal file
45
test/functional/contracts_controller_test.rb
Normal file
@@ -0,0 +1,45 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ContractsControllerTest < ActionController::TestCase
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:contracts)
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create contract" do
|
||||
assert_difference('Contract.count') do
|
||||
post :create, :contract => { }
|
||||
end
|
||||
|
||||
assert_redirected_to contract_path(assigns(:contract))
|
||||
end
|
||||
|
||||
test "should show contract" do
|
||||
get :show, :id => contracts(:one).to_param
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get :edit, :id => contracts(:one).to_param
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update contract" do
|
||||
put :update, :id => contracts(:one).to_param, :contract => { }
|
||||
assert_redirected_to contract_path(assigns(:contract))
|
||||
end
|
||||
|
||||
test "should destroy contract" do
|
||||
assert_difference('Contract.count', -1) do
|
||||
delete :destroy, :id => contracts(:one).to_param
|
||||
end
|
||||
|
||||
assert_redirected_to contracts_path
|
||||
end
|
||||
end
|
||||
45
test/functional/signers_controller_test.rb
Normal file
45
test/functional/signers_controller_test.rb
Normal file
@@ -0,0 +1,45 @@
|
||||
require 'test_helper'
|
||||
|
||||
class SignersControllerTest < ActionController::TestCase
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:signers)
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create signer" do
|
||||
assert_difference('Signer.count') do
|
||||
post :create, :signer => { }
|
||||
end
|
||||
|
||||
assert_redirected_to signer_path(assigns(:signer))
|
||||
end
|
||||
|
||||
test "should show signer" do
|
||||
get :show, :id => signers(:one).to_param
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get :edit, :id => signers(:one).to_param
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update signer" do
|
||||
put :update, :id => signers(:one).to_param, :signer => { }
|
||||
assert_redirected_to signer_path(assigns(:signer))
|
||||
end
|
||||
|
||||
test "should destroy signer" do
|
||||
assert_difference('Signer.count', -1) do
|
||||
delete :destroy, :id => signers(:one).to_param
|
||||
end
|
||||
|
||||
assert_redirected_to signers_path
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user