diff options
author | Semyon Pupkov <mail@semyonpupkov.com> | 2016-11-19 03:22:02 +0500 |
---|---|---|
committer | Semyon Pupkov <mail@semyonpupkov.com> | 2016-11-19 03:22:02 +0500 |
commit | cad3ad266a3fa28de9ae8e5025d1f7a984892b4e (patch) | |
tree | 5456a7ed392e5d29c5df22641349989fd484d612 /spec/models/broadcast_message_spec.rb | |
parent | f82d6aa147995523971ee9741b67f4a4a5b8f29d (diff) | |
download | gitlab-ce-cad3ad266a3fa28de9ae8e5025d1f7a984892b4e.tar.gz |
Use build instead create in BroadcastMessage model spec
Diffstat (limited to 'spec/models/broadcast_message_spec.rb')
-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 } |