summaryrefslogtreecommitdiffstats
path: root/spec/unit/util/rdoc/parser_spec.rb
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2010-07-21 23:10:46 +0200
committerMarkus Roberts <Markus@reality.com>2010-07-25 22:24:31 -0700
commit7ad7eb12fade4695abf08392e80ca57003353140 (patch)
tree5f2f186167da4dcba7a5166250e98732a5d2b13a /spec/unit/util/rdoc/parser_spec.rb
parent28bb1950cf040eaf5196e39f43b3a9d0d61175a7 (diff)
downloadpuppet-7ad7eb12fade4695abf08392e80ca57003353140.tar.gz
puppet-7ad7eb12fade4695abf08392e80ca57003353140.tar.xz
puppet-7ad7eb12fade4695abf08392e80ca57003353140.zip
Fix #4286 - rename puppetdoc global module <site> to __site__
< and > might be invalid or borderline chars to use for a file name or an url. This patch changes those characters to __. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'spec/unit/util/rdoc/parser_spec.rb')
-rwxr-xr-xspec/unit/util/rdoc/parser_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/util/rdoc/parser_spec.rb b/spec/unit/util/rdoc/parser_spec.rb
index a9c8190a6..79195e657 100755
--- a/spec/unit/util/rdoc/parser_spec.rb
+++ b/spec/unit/util/rdoc/parser_spec.rb
@@ -85,8 +85,8 @@ describe RDoc::Parser do
@parser.scan_top_level(@topcontainer)
end
- it "should set the module as global if we parse the global manifests (ie <site> module)" do
- @parser.stubs(:split_module).returns("<site>")
+ it "should set the module as global if we parse the global manifests (ie __site__ module)" do
+ @parser.stubs(:split_module).returns(RDoc::Parser::SITE)
@parser.stubs(:parse_elements)
@topcontainer.expects(:global=).with(true)
@@ -131,7 +131,7 @@ describe RDoc::Parser do
it "should return <site> for manifests not under module path" do
File.stubs(:expand_path).returns("/path/to/manifests/init.pp")
File.stubs(:identical?).returns(false)
- @parser.split_module("/path/to/manifests/init.pp").should == "<site>"
+ @parser.split_module("/path/to/manifests/init.pp").should == RDoc::Parser::SITE
end
end