diff --git a/spec/fixtures/hiera/hiera_bad_18.yaml b/spec/fixtures/hiera/hiera_bad_18.yaml deleted file mode 100644 index 8e8518b..0000000 --- a/spec/fixtures/hiera/hiera_bad_18.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -!!!str -foo diff --git a/spec/puppet-syntax/hiera_spec.rb b/spec/puppet-syntax/hiera_spec.rb index bbecdfb..333c706 100644 --- a/spec/puppet-syntax/hiera_spec.rb +++ b/spec/puppet-syntax/hiera_spec.rb @@ -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