summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorSemyon Pupkov <mail@semyonpupkov.com>2016-10-12 10:50:01 +0500
committerSemyon Pupkov <mail@semyonpupkov.com>2016-10-12 10:50:01 +0500
commit31c41a8fe1ef67347e5bcfdb97ff15a079976945 (patch)
tree23a944428325d865e46b56c5b6ccd55f7f65030e /spec/models
parent9c92443ffe90ec58490fb66ebce98e8e19a07c9b (diff)
downloadgitlab-ce-31c41a8fe1ef67347e5bcfdb97ff15a079976945.tar.gz
Use build instead create record in appearance_spec
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/appearance_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/appearance_spec.rb b/spec/models/appearance_spec.rb
index c5658bd26e1..0b72a2f979b 100644
--- a/spec/models/appearance_spec.rb
+++ b/spec/models/appearance_spec.rb
@@ -1,7 +1,7 @@
require 'rails_helper'
RSpec.describe Appearance, type: :model do
- subject { create(:appearance) }
+ subject { build(:appearance) }
it { is_expected.to be_valid }