summaryrefslogtreecommitdiff
path: root/spec/models/broadcast_message_spec.rb
diff options
context:
space:
mode:
authorSemyon Pupkov <mail@semyonpupkov.com>2016-11-19 03:22:02 +0500
committerSemyon Pupkov <mail@semyonpupkov.com>2016-11-19 03:22:02 +0500
commitcad3ad266a3fa28de9ae8e5025d1f7a984892b4e (patch)
tree5456a7ed392e5d29c5df22641349989fd484d612 /spec/models/broadcast_message_spec.rb
parentf82d6aa147995523971ee9741b67f4a4a5b8f29d (diff)
downloadgitlab-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.rb2
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 }