summaryrefslogtreecommitdiffstats
path: root/spec/integration
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-05-15 14:30:29 -0500
committerLuke Kanies <luke@madstop.com>2008-05-15 14:30:29 -0500
commit1ba2bed578debd251d2b9514039082eaa3f136df (patch)
tree907098a846dd7215d59ccfec2d470318bb619fa8 /spec/integration
parentbe0a8031fbf8e4a2d608ab600c37c1b01dec16a1 (diff)
downloadfacter-1ba2bed578debd251d2b9514039082eaa3f136df.tar.gz
facter-1ba2bed578debd251d2b9514039082eaa3f136df.tar.xz
facter-1ba2bed578debd251d2b9514039082eaa3f136df.zip
Moving all of the support classes to util/.
This makes it easier for our loader to distinguish between code that Facter uses and new facts.
Diffstat (limited to 'spec/integration')
-rwxr-xr-xspec/integration/facter.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/integration/facter.rb b/spec/integration/facter.rb
index b503c9d..e1f2025 100755
--- a/spec/integration/facter.rb
+++ b/spec/integration/facter.rb
@@ -8,10 +8,15 @@ describe Facter do
Facter.loadfacts
end
+ after do
+ Facter.reset
+ end
+
it "should create a new collection if one does not exist" do
Facter.reset
- Facter::Collection.expects(:new).returns "coll"
- Facter.collection.should == "coll"
+ coll = mock('coll')
+ Facter::Util::Collection.stubs(:new).returns coll
+ Facter.collection.should equal(coll)
Facter.reset
end