diff options
author | luke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a> | 2006-05-30 23:49:26 +0000 |
---|---|---|
committer | luke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a> | 2006-05-30 23:49:26 +0000 |
commit | c7cfd0812577df8f678b65093f746d7ae651994c (patch) | |
tree | 458c81656e22404e82e4f85566c22f06933b5b7d /tests | |
parent | 59cea90bd77383b9aa70e9ba41a54428f21b0538 (diff) | |
download | facter-c7cfd0812577df8f678b65093f746d7ae651994c.tar.gz facter-c7cfd0812577df8f678b65093f746d7ae651994c.tar.xz facter-c7cfd0812577df8f678b65093f746d7ae651994c.zip |
Adding patch from #11, with slight modifications.
git-svn-id: http://reductivelabs.com/svn/facter/trunk@119 1f5c1d6a-bddf-0310-8f58-fc49e503516a
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tc_simple.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/tc_simple.rb b/tests/tc_simple.rb index 9dd847f..a293c78 100644 --- a/tests/tc_simple.rb +++ b/tests/tc_simple.rb @@ -447,6 +447,26 @@ some random stuff assert_equal("yep1", Facter.symbol1, "Did not get symbol fact") end + def test_tag_case_insensitivity + assert_nothing_raised { + Facter.add :casetest1 do + tag :kernel => Facter.kernel.downcase + setcode do "yep1" end + end + } + + assert_equal("yep1", Facter.casetest1, "Did not get case test 1") + + assert_nothing_raised { + Facter.add :casetest2 do + tag :kernel => Facter.kernel.upcase + setcode do "yep2" end + end + } + + assert_equal("yep2", Facter.casetest2, "Did not get case test 1") + end + if Facter.kernel == "Linux" def test_memoryonlinux assert_nothing_raised { |