1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

add test for raising and error when trying to change app global settings from a namespace

This commit is contained in:
Konstantin Haase 2011-03-26 00:40:06 +01:00
parent fb488b9867
commit 676d217a3b

View file

@ -538,6 +538,7 @@ describe Sinatra::Namespace do
end
it 'prevents changing app global settings' do
proc { namespace('/') { set :foo, :bar }}.should raise_error
end
end
end