mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 02:09:54 +08:00
15 lines
466 B
Ruby
15 lines
466 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
RSpec.describe ThemeSettingsMigration do
|
||
|
describe "Validations" do
|
||
|
subject(:badge) { Fabricate.build(:theme_settings_migration) }
|
||
|
|
||
|
it { is_expected.to validate_presence_of(:theme_id) }
|
||
|
it { is_expected.to validate_presence_of(:theme_field_id) }
|
||
|
|
||
|
it { is_expected.to validate_presence_of(:version) }
|
||
|
it { is_expected.to validate_presence_of(:name) }
|
||
|
it { is_expected.to validate_presence_of(:diff) }
|
||
|
end
|
||
|
end
|