aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-23 09:21:30 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-23 12:58:05 +0100
commit7fb0c23b891b8734cb04a9690cd030a134f5cd4d (patch)
treeeaac05016a75763698f821bb19816ca63b9acab3 /test
parent7302c52a0011556527e5cbb6b0e996bd5bf49508 (diff)
downloadgovuk-mini-environment-admin-7fb0c23b891b8734cb04a9690cd030a134f5cd4d.tar
govuk-mini-environment-admin-7fb0c23b891b8734cb04a9690cd030a134f5cd4d.tar.gz
Add initial support for fetching govuk-guix revisions on remote hosts
This begins to remote the restriction of having to have Guix installed locally.
Diffstat (limited to 'test')
-rw-r--r--test/controllers/govuk_guix/revisions_controller_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/controllers/govuk_guix/revisions_controller_test.rb b/test/controllers/govuk_guix/revisions_controller_test.rb
index 51ca048..6f08489 100644
--- a/test/controllers/govuk_guix/revisions_controller_test.rb
+++ b/test/controllers/govuk_guix/revisions_controller_test.rb
@@ -19,7 +19,8 @@ class GovukGuix::RevisionsControllerTest < ActionDispatch::IntegrationTest
test 'enqueue_fetch_revision' do
revision = 'test-revision'
- GovukGuix::FetchRevisionJob.expects(:enqueue).with(revision)
+ Guix.stubs(:available_locally?).returns(true)
+ GovukGuix::FetchRevisionJob.expects(:enqueue).with(revision, {})
post(
enqueue_fetch_govuk_guix_revision_path,