diff options
author | Christopher Baines <mail@cbaines.net> | 2018-02-18 11:23:41 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-03-29 07:41:09 +0100 |
commit | bc1ffc5214ab3f563b60523d9c349fab7974e634 (patch) | |
tree | 1caa1ed8bf2fb96c4d340aeffd53cd50a8799980 /test | |
parent | 700b8b0a112fa976b9850418a7f0c71d95b6dd79 (diff) | |
download | govuk-mini-environment-admin-bc1ffc5214ab3f563b60523d9c349fab7974e634.tar govuk-mini-environment-admin-bc1ffc5214ab3f563b60523d9c349fab7974e634.tar.gz |
Add some govuk-guix related jobs
And various other views and routes.
Diffstat (limited to 'test')
-rw-r--r-- | test/controllers/govuk_guix/revisions_controller_test.rb | 9 | ||||
-rw-r--r-- | test/controllers/que_jobs_controller_test.rb | 14 | ||||
-rw-r--r-- | test/fixtures/govuk_guix/revisions.yml | 9 | ||||
-rw-r--r-- | test/models/govuk_guix/revision_test.rb | 7 |
4 files changed, 39 insertions, 0 deletions
diff --git a/test/controllers/govuk_guix/revisions_controller_test.rb b/test/controllers/govuk_guix/revisions_controller_test.rb new file mode 100644 index 0000000..ae93202 --- /dev/null +++ b/test/controllers/govuk_guix/revisions_controller_test.rb @@ -0,0 +1,9 @@ +require 'test_helper' + +class GovukGuix::RevisionsControllerTest < ActionDispatch::IntegrationTest + test "should get index" do + get govuk_guix_revisions_index_url + assert_response :success + end + +end diff --git a/test/controllers/que_jobs_controller_test.rb b/test/controllers/que_jobs_controller_test.rb new file mode 100644 index 0000000..691d0f3 --- /dev/null +++ b/test/controllers/que_jobs_controller_test.rb @@ -0,0 +1,14 @@ +require 'test_helper' + +class QueJobsControllerTest < ActionDispatch::IntegrationTest + test "should get cancel" do + get que_jobs_cancel_url + assert_response :success + end + + test "should get retry_now" do + get que_jobs_retry_now_url + assert_response :success + end + +end diff --git a/test/fixtures/govuk_guix/revisions.yml b/test/fixtures/govuk_guix/revisions.yml new file mode 100644 index 0000000..ad7058f --- /dev/null +++ b/test/fixtures/govuk_guix/revisions.yml @@ -0,0 +1,9 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + treeish: MyString + store_path: MyString + +two: + treeish: MyString + store_path: MyString diff --git a/test/models/govuk_guix/revision_test.rb b/test/models/govuk_guix/revision_test.rb new file mode 100644 index 0000000..b46181a --- /dev/null +++ b/test/models/govuk_guix/revision_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class GovukGuix::RevisionTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end |