diff options
author | Christopher Baines <mail@cbaines.net> | 2018-03-16 08:51:54 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-03-29 07:55:01 +0100 |
commit | 051c8bf612126fa79699c8bf45a661dde127f4a0 (patch) | |
tree | 849a3b05b4ab4b59a426761d7cf1da3cc7036349 /test/controllers | |
parent | a8c8f68971dd9e20dee01d9f65c64283e41fe4a3 (diff) | |
download | govuk-mini-environment-admin-051c8bf612126fa79699c8bf45a661dde127f4a0.tar govuk-mini-environment-admin-051c8bf612126fa79699c8bf45a661dde127f4a0.tar.gz |
Add backend controllers, models and views
Also annotate existing models.
Diffstat (limited to 'test/controllers')
4 files changed, 42 insertions, 0 deletions
diff --git a/test/controllers/backends/terraform_aws_controller_test.rb b/test/controllers/backends/terraform_aws_controller_test.rb new file mode 100644 index 0000000..0c574fa --- /dev/null +++ b/test/controllers/backends/terraform_aws_controller_test.rb @@ -0,0 +1,14 @@ +require 'test_helper' + +class Backends::TerraformAwsControllerTest < ActionDispatch::IntegrationTest + test "should get new" do + get backends_terraform_aws_new_url + assert_response :success + end + + test "should get show" do + get backends_terraform_aws_show_url + assert_response :success + end + +end diff --git a/test/controllers/backends/terraform_libvirt_controller_test.rb b/test/controllers/backends/terraform_libvirt_controller_test.rb new file mode 100644 index 0000000..376d753 --- /dev/null +++ b/test/controllers/backends/terraform_libvirt_controller_test.rb @@ -0,0 +1,14 @@ +require 'test_helper' + +class Backends::TerraformLibvirtControllerTest < ActionDispatch::IntegrationTest + test "should get new" do + get backends_terraform_libvirt_new_url + assert_response :success + end + + test "should get show" do + get backends_terraform_libvirt_show_url + assert_response :success + end + +end diff --git a/test/controllers/backends_controller_test.rb b/test/controllers/backends_controller_test.rb new file mode 100644 index 0000000..fe2682e --- /dev/null +++ b/test/controllers/backends_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class BackendsControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/test/controllers/setup_controller_test.rb b/test/controllers/setup_controller_test.rb new file mode 100644 index 0000000..d350d63 --- /dev/null +++ b/test/controllers/setup_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class SetupControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end |