Welcome to mirror list, hosted at ThFree Co, Russian Federation.

appearance_spec.rb « models « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1060bf3cbf404fab046c044ae10cf0d394d42372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require 'rails_helper'

RSpec.describe Appearance, type: :model do
  subject { build(:appearance) }

  it { is_expected.to be_valid }

  it { is_expected.to validate_presence_of(:title) }
  it { is_expected.to validate_presence_of(:description) }

  it { is_expected.to have_many(:uploads).dependent(:destroy) }
end