diff --git a/spec/models/mailing_list_mode_site_setting_spec.rb b/spec/models/mailing_list_mode_site_setting_spec.rb index d8ccc7e4aa1..498e5137fbc 100644 --- a/spec/models/mailing_list_mode_site_setting_spec.rb +++ b/spec/models/mailing_list_mode_site_setting_spec.rb @@ -3,15 +3,15 @@ require 'rails_helper' describe MailingListModeSiteSetting do describe 'valid_value?' do it 'returns true for a valid value as an int' do - expect(DigestEmailSiteSetting.valid_value?(0)).to eq true + expect(MailingListModeSiteSetting.valid_value?(0)).to eq(true) end - it 'returns false for a valid value as a string' do - expect(DigestEmailSiteSetting.valid_value?('0')).to eq true + it 'returns true for a valid value as a string' do + expect(MailingListModeSiteSetting.valid_value?('0')).to eq(true) end it 'returns false for an out of range value' do - expect(DigestEmailSiteSetting.valid_value?(3)).to eq false + expect(MailingListModeSiteSetting.valid_value?(3)).to eq(false) end end end