(maint) Define :config in token tests

Miscellaneous whitespace cleanup.
This commit is contained in:
Rick Bradley 2016-06-01 14:12:38 -05:00
parent b1cdc4fbe4
commit e4aa311834
2 changed files with 1 additions and 1 deletions

View file

@ -25,6 +25,7 @@ describe Vmpooler::API::V1 do
describe '/token' do describe '/token' do
let(:prefix) { '/api/v1' } let(:prefix) { '/api/v1' }
let(:current_time) { Time.now } let(:current_time) { Time.now }
let(:config) { { } }
before do before do
app.settings.set :config, config app.settings.set :config, config

View file

@ -51,7 +51,6 @@ describe Vmpooler::API::V1 do
end end
describe 'PUT /vm/:hostname' do describe 'PUT /vm/:hostname' do
it 'allows tags to be set' do it 'allows tags to be set' do
create_vm('testhost') create_vm('testhost')
put "#{prefix}/vm/testhost", '{"tags":{"tested_by":"rspec"}}' put "#{prefix}/vm/testhost", '{"tags":{"tested_by":"rspec"}}'