diff options
author | Rémy Coutable <remy@rymai.me> | 2016-11-21 10:55:31 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-11-21 10:55:31 +0000 |
commit | 782a42ca935b9910bb6a8687f7d415c832fb1233 (patch) | |
tree | b43f8c5ab9fd343662726378c17a96a50a279676 /spec | |
parent | 900999f8180e49aa1677286e3e0cfa08d47829a7 (diff) | |
parent | cad3ad266a3fa28de9ae8e5025d1f7a984892b4e (diff) | |
download | gitlab-ce-782a42ca935b9910bb6a8687f7d415c832fb1233.tar.gz |
Merge branch 'use-build-in-broadcast-message-spec' into 'master'
Use build instead create in BroadcastMessage model spec
See merge request !7592
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/broadcast_message_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/broadcast_message_spec.rb b/spec/models/broadcast_message_spec.rb index 02d6263094a..219db365a91 100644 --- a/spec/models/broadcast_message_spec.rb +++ b/spec/models/broadcast_message_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' describe BroadcastMessage, models: true do - subject { create(:broadcast_message) } + subject { build(:broadcast_message) } it { is_expected.to be_valid } |