mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Set config via env for dashboard spec
This commit is contained in:
parent
528020fec7
commit
b4bae80eeb
2 changed files with 2 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ module Vmpooler
|
||||||
|
|
||||||
get '/dashboard/?' do
|
get '/dashboard/?' do
|
||||||
erb :dashboard, locals: {
|
erb :dashboard, locals: {
|
||||||
site_name: config[:config]['site_name'] || '<b>vmpooler</b>'
|
site_name: ENV['SITE_NAME'] || config[:config]['site_name'] || '<b>vmpooler</b>'
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ describe Vmpooler::API do
|
||||||
|
|
||||||
context '/dashboard/' do
|
context '/dashboard/' do
|
||||||
ENV['SITE_NAME'] = 'test pooler'
|
ENV['SITE_NAME'] = 'test pooler'
|
||||||
|
ENV['VMPOOLER_CONFIG'] = 'thing'
|
||||||
|
|
||||||
before do
|
before do
|
||||||
get '/dashboard/'
|
get '/dashboard/'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue