File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,17 +7,17 @@ def test_that_csv_exists
7
7
8
8
def test_pdf_init_with_valid_params
9
9
pdf = File . open ( 'examples/CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0.pdf' )
10
- assert ( InspecTools ::PDF . new ( pdf , 'test' , false ) )
10
+ assert ( InspecTools ::PDF . new ( pdf , 'test' , ENV [ 'INSPEC_TOOLS_DEBUG' ] || false ) )
11
11
end
12
12
13
13
def test_pdf_init_with_invalid_params
14
14
pdf = nil
15
- assert_raises ( StandardError ) { InspecTools ::PDF . new ( pdf , 'test' , false ) }
15
+ assert_raises ( StandardError ) { InspecTools ::PDF . new ( pdf , 'test' , ENV [ 'INSPEC_TOOLS_DEBUG' ] || false ) }
16
16
end
17
17
18
18
def test_pdf_to_inspec
19
19
pdf = File . open ( 'examples/CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0.pdf' )
20
- pdf_tool = InspecTools ::PDF . new ( pdf , 'test' , true )
20
+ pdf_tool = InspecTools ::PDF . new ( pdf , 'test' , ENV [ 'INSPEC_TOOLS_DEBUG' ] || false )
21
21
inspec_json = pdf_tool . to_inspec
22
22
assert ( inspec_json )
23
23
end
You can’t perform that action at this time.
0 commit comments