BigW Consortium Gitlab

appearance_spec.rb 316 Bytes
Newer Older
1 2 3
require 'rails_helper'

RSpec.describe Appearance, type: :model do
4
  subject { build(:appearance) }
5 6 7 8 9

  it { is_expected.to be_valid }

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

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