Permalink
Browse files

Added a test fact

  • Loading branch information...
1 parent c635196 commit 7a0755a8600016eee53730f6649e335d253db2c4 @cosimo committed Nov 21, 2010
Showing with 4 additions and 1 deletion.
  1. +3 −0 lib/Facter/perl6os.pm
  2. +1 −1 t/basic.t
View
3 lib/Facter/perl6os.pm
@@ -0,0 +1,3 @@
+Facter.add(<perl6os>, sub {
+ $*OS.Str;
+});
View
2 t/basic.t
@@ -11,7 +11,7 @@ ok(@search_dirs.elems == 0, "Search path list is empty at startup");
my $coll = $facter.collection;
ok($coll, "Collection object is there");
-my $test-fact = 'os';
+my $test-fact = 'perl6os';
my $lsbdistname = $facter.fact($test-fact);
ok($lsbdistname, "fact '$test-fact' is loaded");

0 comments on commit 7a0755a

Please sign in to comment.