From: Robert 'phaylon' Sedlacek Date: Mon, 18 Jun 2012 22:21:17 +0000 (+0000) Subject: fixed tests to expect __error__ instead of error mark X-Git-Tag: v0.001_001~41 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0c7501ff43ac490c870a8da0618ee0cffeb56a8f;p=scpubgit%2FSystem-Introspector.git fixed tests to expect __error__ instead of error mark --- diff --git a/t/filehandles.t b/t/filehandles.t index b0c90ff..867d497 100644 --- a/t/filehandles.t +++ b/t/filehandles.t @@ -19,7 +19,7 @@ do { my $fail_data; $fail_data = $fail_probe->gather; ok $fail_data, 'received data'; - like $fail_data->{error}, qr{lsoffake}, 'correct error is set'; + like $fail_data->{__error__}, qr{lsoffake}, 'correct error is set'; }; done_testing; diff --git a/t/puppet.t b/t/puppet.t index c7e396b..946ae6d 100644 --- a/t/puppet.t +++ b/t/puppet.t @@ -19,7 +19,7 @@ is_deeply $data->{resources}{list}, [file => '/home/foo/quux'], [package => 'baz'], [group => 'bar'], - [error => 'invalid'], + [__error__ => 'invalid'], [foo => 'bar']], 'resources parsing';