diff options
author | Christopher Baines <mail@cbaines.net> | 2019-04-27 10:36:07 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2019-04-27 10:36:07 +0100 |
commit | f25d25d1d9e00db43565a48af9458883879b4299 (patch) | |
tree | 710a76e1e0e3072aacb34577fa1593691c072176 /test/controllers/govuk_guix/revisions_controller_test.rb | |
parent | 2ee6ce2fb7d0880ea598c35c51f19b6cb55c78c1 (diff) | |
download | govuk-mini-environment-admin-f25d25d1d9e00db43565a48af9458883879b4299.tar govuk-mini-environment-admin-f25d25d1d9e00db43565a48af9458883879b4299.tar.gz |
Use create! in the tests
As this should make finding out about validation errors easier.
Diffstat (limited to 'test/controllers/govuk_guix/revisions_controller_test.rb')
-rw-r--r-- | test/controllers/govuk_guix/revisions_controller_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/controllers/govuk_guix/revisions_controller_test.rb b/test/controllers/govuk_guix/revisions_controller_test.rb index 6f08489..a0c4d78 100644 --- a/test/controllers/govuk_guix/revisions_controller_test.rb +++ b/test/controllers/govuk_guix/revisions_controller_test.rb @@ -6,7 +6,7 @@ class GovukGuix::RevisionsControllerTest < ActionDispatch::IntegrationTest end test 'show' do - revision = GovukGuix::Revision.create( + revision = GovukGuix::Revision.create!( commit_hash: 'test-commit-hash', store_path: 'test-store-path' ) |