* Add custom_profile_fields table * Add CustomProfileField model and refactor * Remove trailing whitespace * Stop ignoring removed column * Add explanatory comment * Update service object * Fix bug in service object * Refactor and fix specs * Increase limit from 3 to 5 * Update comment to reflect code changes
12 lines
360 B
Ruby
12 lines
360 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe ProfileField, type: :model do
|
|
it_behaves_like "a profile field"
|
|
|
|
describe "validations" do
|
|
describe "builtin validations" do
|
|
it { is_expected.to belong_to(:profile_field_group).optional(true) }
|
|
it { is_expected.to validate_inclusion_of(:show_in_onboarding).in_array([true, false]) }
|
|
end
|
|
end
|
|
end
|