diff options
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 |