Fix tests that was testing the wrong class.
This commit is contained in:
parent
50c8ae2c10
commit
441e0059af
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue