debian-mirror-gitlab/spec/models/appearance_spec.rb
2017-08-17 22:00:37 +05:30

12 lines
316 B
Ruby

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