diff --git a/spec/unit/util/confine.rb b/spec/unit/util/confine.rb
index c2edd4f..24ba378 100755
--- a/spec/unit/util/confine.rb
+++ b/spec/unit/util/confine.rb
@@ -35,7 +35,7 @@ describe Facter::Util::Confine do
describe "when evaluating" do
before do
- @confine = Facter::Util::Confine.new("yay", "one", "two")
+ @confine = Facter::Util::Confine.new("yay", "one", "two", 1, true)
@fact = mock 'fact'
Facter.stubs(:[]).returns @fact
end
@@ -60,6 +60,12 @@ describe Facter::Util::Confine do
@confine.true?.should be_false
end
+ it "should return true if any of the provided integer values matches the fact's value" do
+ @fact.stubs(:value).returns 1
+
+ @confine.true?.should be_true
+ end
+
it "should return true if any of the provided values matches the fact's value" do
@fact.stubs(:value).returns "two"