debian-mirror-gitlab/spec/models/appearance_spec.rb

13 lines
316 B
Ruby
Raw Normal View History

2016-04-02 18:10:28 +05:30
require 'rails_helper'
RSpec.describe Appearance, type: :model do
2016-11-03 12:29:30 +05:30
subject { build(:appearance) }
2016-04-02 18:10:28 +05:30
it { is_expected.to be_valid }
it { is_expected.to validate_presence_of(:title) }
it { is_expected.to validate_presence_of(:description) }
2017-08-17 22:00:37 +05:30
it { is_expected.to have_many(:uploads).dependent(:destroy) }
2016-04-02 18:10:28 +05:30
end