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:
parent
fb488b9867
commit
676d217a3b
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue