diff options
author | Luke Kanies <luke@madstop.com> | 2008-08-23 22:00:19 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-08-26 22:40:40 -0700 |
commit | a0bda8532f5e1e9f5bb29eb92f389383ae0857d5 (patch) | |
tree | d72d17177926d38773c30614ba52f94ae64ea33b /spec/unit/file_serving | |
parent | 6335b143a312481aaa200f71cd25dffd4f88c8ae (diff) | |
download | puppet-a0bda8532f5e1e9f5bb29eb92f389383ae0857d5.tar.gz puppet-a0bda8532f5e1e9f5bb29eb92f389383ae0857d5.tar.xz puppet-a0bda8532f5e1e9f5bb29eb92f389383ae0857d5.zip |
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/file_serving')
-rwxr-xr-x | spec/unit/file_serving/content.rb | 24 |
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 |