Fix tests that was testing the wrong class.

This commit is contained in:
Guo Xiang Tan 2017-05-05 10:59:07 +08:00
parent 50c8ae2c10
commit 441e0059af
1 changed files with 4 additions and 4 deletions

View File

@ -3,15 +3,15 @@ require 'rails_helper'
describe MailingListModeSiteSetting do describe MailingListModeSiteSetting do
describe 'valid_value?' do describe 'valid_value?' do
it 'returns true for a valid value as an int' 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 end
it 'returns false for a valid value as a string' do it 'returns true for a valid value as a string' do
expect(DigestEmailSiteSetting.valid_value?('0')).to eq true expect(MailingListModeSiteSetting.valid_value?('0')).to eq(true)
end end
it 'returns false for an out of range value' do 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 end
end end