spec/unit/puppet-strings/yard/parsers/puppet/parser_spec.rb in puppet-strings-1.2.1 vs spec/unit/puppet-strings/yard/parsers/puppet/parser_spec.rb in puppet-strings-2.0.0
- old
+ new
@@ -27,10 +27,10 @@
class foo {
SOURCE
}
it 'should raise an exception' do
- expect{ subject.parse }.to output(/\[error\]: Failed to parse test.pp: Syntax error at end of file/).to_stdout_from_any_process
+ expect{ subject.parse }.to output(/\[error\]: Failed to parse test.pp: Syntax error at end of (file|input)/).to_stdout_from_any_process
end
end
describe 'parsing class definitions' do
let(:source) { <<SOURCE