Two more test files needed mock updates

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
Clinton Wolfe 2019-01-27 23:32:54 -05:00
parent ea78e2f3c5
commit d31a13efc6
2 changed files with 3 additions and 2 deletions

View file

@ -3,6 +3,7 @@
# author: Dominik Richter
require 'helper'
require 'inspec/config'
describe 'controls' do
def load(content)
@ -10,7 +11,7 @@ describe 'controls' do
'inspec.yml' => "name: mock",
'controls/mock.rb' => "control '1' do\n#{content}\nend\n",
}
opts = { test_collector: Inspec::RunnerMock.new, backend: Inspec::Backend.create({ backend: 'mock' }) }
opts = { test_collector: Inspec::RunnerMock.new, backend: Inspec::Backend.create(Inspec::Config.mock) }
Inspec::Profile.for_target(data, opts)
.params[:controls]['1']
end

View file

@ -8,7 +8,7 @@ describe FindFiles do
class FindFilesTest
include FindFiles
def inspec
Inspec::Backend.create(backend: :mock)
Inspec::Backend.create(Inspec::Config.mock)
end
end
FindFilesTest.new