summaryrefslogtreecommitdiffstats
path: root/spec/unit/util/autoload
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-06-24 12:10:21 -0700
committerMarkus Roberts <Markus@reality.com>2010-06-24 15:59:11 -0700
commit3b4d33c7aa3be37fc8d82cd3357612c577db3e48 (patch)
treed3c2ba8c4ed5d017ad2d66c098af6376ed9d61f2 /spec/unit/util/autoload
parentc8089f1213302bea3f11250177afa6e96b566e12 (diff)
downloadpuppet-3b4d33c7aa3be37fc8d82cd3357612c577db3e48.tar.gz
puppet-3b4d33c7aa3be37fc8d82cd3357612c577db3e48.tar.xz
puppet-3b4d33c7aa3be37fc8d82cd3357612c577db3e48.zip
remove tests for removed code
Diffstat (limited to 'spec/unit/util/autoload')
-rwxr-xr-xspec/unit/util/autoload/file_cache_spec.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/unit/util/autoload/file_cache_spec.rb b/spec/unit/util/autoload/file_cache_spec.rb
index 59620ed2d..d52ea453d 100755
--- a/spec/unit/util/autoload/file_cache_spec.rb
+++ b/spec/unit/util/autoload/file_cache_spec.rb
@@ -156,28 +156,4 @@ describe Puppet::Util::Autoload::FileCache do
other.should be_directory_exist("/my/file")
end
end
-
- describe "when checking whether a named file exists" do
- it "should have a method for testing whether a named file is missing" do
- @cacher.should respond_to(:named_file_missing?)
- end
-
- it "should have a method for registering that a named file is missing" do
- @cacher.should respond_to(:named_file_is_missing)
- end
-
- it "should cache that a file is missing for 15 seconds" do
- now = Time.now
-
- later = now + 16
-
- Time.expects(:now).times(2).returns(now).then.returns(later)
- @cacher.named_file_is_missing("foo")
- @cacher.should_not be_named_file_missing("foo")
- end
-
- it "should return false when registering a file as missing" do
- @cacher.named_file_is_missing("foo").should be_false
- end
- end
end