diff options
Diffstat (limited to 'test/controllers/govuk_guix/revisions_controller_test.rb')
-rw-r--r-- | test/controllers/govuk_guix/revisions_controller_test.rb | 3 |
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, |