Skip to content

Commit

Permalink
Test for jdk8 alternatives being set by default
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmorris committed Sep 7, 2023
1 parent 8d27aed commit a30bc50
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
priority: 1000
)
end

Check failure on line 25 in spec/classes/init_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

RSpec/EmptyLineAfterExample: Add an empty line after `it`. (https://rspec.rubystyle.guide/#empty-lines-around-examples, https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyLineAfterExample)
it do
dest = "/usr/java/jdk1.8.0_202-amd64/bin/#{cmd}"

Check failure on line 27 in spec/classes/init_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Lint/UselessAssignment: Useless assignment to variable - `dest`. (https://rubystyle.guide#underscore-unused-vars)
is_expected.to contain_alternatives($cmd).with(

Check failure on line 28 in spec/classes/init_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Style/GlobalVars: Do not introduce global variables. (https://rubystyle.guide#instance-vars, https://www.zenspider.com/ruby/quickref.html)
path: $dest

Check failure on line 29 in spec/classes/init_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Style/GlobalVars: Do not introduce global variables. (https://rubystyle.guide#instance-vars, https://www.zenspider.com/ruby/quickref.html)
)
end
end
end
end

0 comments on commit a30bc50

Please sign in to comment.