aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-21 20:45:46 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-21 20:45:46 +0100
commite14f9f452347417a4cf565ce3a0b084fe479e076 (patch)
tree92ee26446f745aff870714bf0a9a8fdeab7cfffa
parentd98eb528678dcd850a20dbf8eef53aaea6e07552 (diff)
downloadgovuk-mini-environment-admin-e14f9f452347417a4cf565ce3a0b084fe479e076.tar
govuk-mini-environment-admin-e14f9f452347417a4cf565ce3a0b084fe479e076.tar.gz
Fix an issue with the setup page
And add some test data to make the corresponding test more rigorous.
-rw-r--r--app/views/setup/show.html.erb2
-rw-r--r--test/controllers/setup_controller_test.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/app/views/setup/show.html.erb b/app/views/setup/show.html.erb
index 1a88852..c3ed3b8 100644
--- a/app/views/setup/show.html.erb
+++ b/app/views/setup/show.html.erb
@@ -76,7 +76,7 @@ License along with the GOV.UK Mini Environment Admin. If not, see
<a href="#" class="list-group-item disabled">
Fetching
<span style="font-family: monospace;">
- <%= job["args"].first %>
+ <%= job[:args].first %>
</span>
<div class="progress pull-right" style="width: 21.2em">
diff --git a/test/controllers/setup_controller_test.rb b/test/controllers/setup_controller_test.rb
index 0f8326b..9524f71 100644
--- a/test/controllers/setup_controller_test.rb
+++ b/test/controllers/setup_controller_test.rb
@@ -4,6 +4,8 @@ class SetupControllerTest < ActionDispatch::IntegrationTest
test 'show' do
login_as User.new(name: 'Test')
+ GovukGuix::FetchRevisionJob.enqueue('test-revision')
+
get setup_path
assert_response :success