mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
correct spec
This commit is contained in:
parent
fdc5c080ea
commit
a4e3e081c9
@ -31,11 +31,11 @@ describe IntegerSettingValidator do
|
||||
expect(validator.valid_value?('0')).to eq(true)
|
||||
end
|
||||
|
||||
it "defaults max to 20000" do
|
||||
expect(validator.valid_value?(20001)).to eq(false)
|
||||
expect(validator.valid_value?('20001')).to eq(false)
|
||||
expect(validator.valid_value?(20000)).to eq(true)
|
||||
expect(validator.valid_value?('20000')).to eq(true)
|
||||
it "defaults max to 2_000_000_000" do
|
||||
expect(validator.valid_value?(2_000_000_001)).to eq(false)
|
||||
expect(validator.valid_value?('2000000001')).to eq(false)
|
||||
expect(validator.valid_value?(2_000_000_000)).to eq(true)
|
||||
expect(validator.valid_value?('2000000000')).to eq(true)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user