Use build instead create in BroadcastMessage model spec

This commit is contained in:
Semyon Pupkov 2016-11-19 03:22:02 +05:00
parent f82d6aa147
commit cad3ad266a

View file

@ -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 }