Skip to content

Commit

Permalink
Drop Ruby 1.8 test code
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Apr 4, 2023
1 parent ab4ebd5 commit e81030b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions spec/fixtures/hiera/hiera_bad_18.yaml

This file was deleted.

3 changes: 1 addition & 2 deletions spec/puppet-syntax/hiera_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
end

it "should return an error from invalid YAML" do
hiera_yaml = RUBY_VERSION =~ /1.8/ ? 'hiera_bad_18.yaml' : 'hiera_bad.yaml'
files = fixture_hiera(hiera_yaml)
files = fixture_hiera('hiera_bad.yaml')
expected = /ERROR: Failed to parse #{files[0]}:/
res = subject.check(files)
expect(res.size).to be == 1
Expand Down

0 comments on commit e81030b

Please sign in to comment.