mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 12:13:58 -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)
|
expect(validator.valid_value?('0')).to eq(true)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "defaults max to 20000" do
|
it "defaults max to 2_000_000_000" do
|
||||||
expect(validator.valid_value?(20001)).to eq(false)
|
expect(validator.valid_value?(2_000_000_001)).to eq(false)
|
||||||
expect(validator.valid_value?('20001')).to eq(false)
|
expect(validator.valid_value?('2000000001')).to eq(false)
|
||||||
expect(validator.valid_value?(20000)).to eq(true)
|
expect(validator.valid_value?(2_000_000_000)).to eq(true)
|
||||||
expect(validator.valid_value?('20000')).to eq(true)
|
expect(validator.valid_value?('2000000000')).to eq(true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user