mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 06:33:43 +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
|