diaspora/spec/models/user_preference_spec.rb
2017-09-17 19:29:15 +02:00

8 lines
239 B
Ruby

# frozen_string_literal: true
describe UserPreference, :type => :model do
it 'should only allow valid email types to exist' do
pref = alice.user_preferences.new(:email_type => 'not_valid')
expect(pref).not_to be_valid
end
end