mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Two more test files needed mock updates
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
ea78e2f3c5
commit
d31a13efc6
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue