summaryrefslogtreecommitdiffstats
path: root/spec/unit
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-08-23 22:00:19 -0500
committerLuke Kanies <luke@madstop.com>2008-08-26 22:40:40 -0700
commita0bda8532f5e1e9f5bb29eb92f389383ae0857d5 (patch)
treed72d17177926d38773c30614ba52f94ae64ea33b /spec/unit
parent6335b143a312481aaa200f71cd25dffd4f88c8ae (diff)
Removing the yaml conversion code from FileContent.
Also fixing some integration tests that were failing because of the change to the terminus selection code for file serving. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit')
-rwxr-xr-xspec/unit/file_serving/content.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/unit/file_serving/content.rb b/spec/unit/file_serving/content.rb
index 5444f4abd..e8de1d63e 100755
--- a/spec/unit/file_serving/content.rb
+++ b/spec/unit/file_serving/content.rb
@@ -45,27 +45,3 @@ describe Puppet::FileServing::Content, "when returning the contents" do
@content.content.should == :mycontent
end
end
-
-describe Puppet::FileServing::Content, "when converting to yaml" do
- it "should fail if no path has been set" do
- @content = Puppet::FileServing::Content.new("some/key")
- proc { @content.to_yaml }.should raise_error(ArgumentError)
- end
-
- it "should return the file contents" do
- @content = Puppet::FileServing::Content.new("some/path")
- @content.path = "/base/path"
- @content.expects(:content).returns(:content)
- @content.to_yaml.should == :content
- end
-end
-
-describe Puppet::FileServing::Content, "when converting from yaml" do
- # LAK:FIXME This isn't in the right place, but we need some kind of
- # control somewhere that requires that all REST connections only pull
- # from the file-server, thus guaranteeing they go through our authorization
- # hook.
- it "should set the URI scheme to 'puppetmounts'" do
- pending "We need to figure out where this should be"
- end
-end