mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
add spec to demo blanking props
This commit is contained in:
parent
1781b290cb
commit
293b7e5857
@ -9,6 +9,7 @@ describe GlobalSetting::FileProvider do
|
||||
f.write("a = 1000 # this is a comment\n")
|
||||
f.write("b = \"10 # = 00\" # this is a # comment\n")
|
||||
f.write("c = \'10 # = 00\' # this is a # comment\n")
|
||||
f.write("d =\n")
|
||||
f.close
|
||||
|
||||
provider = GlobalSetting::FileProvider.from(f.path)
|
||||
@ -16,6 +17,8 @@ describe GlobalSetting::FileProvider do
|
||||
provider.lookup(:a,"").should == 1000
|
||||
provider.lookup(:b,"").should == "10 # = 00"
|
||||
provider.lookup(:c,"").should == "10 # = 00"
|
||||
provider.lookup(:d,"bob").should == nil
|
||||
provider.lookup(:e,"bob").should == "bob"
|
||||
|
||||
f.unlink
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user