summaryrefslogtreecommitdiffstats
path: root/spec/unit
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit')
-rwxr-xr-xspec/unit/parser/parser.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/parser/parser.rb b/spec/unit/parser/parser.rb
index ff14e205c..9127599df 100755
--- a/spec/unit/parser/parser.rb
+++ b/spec/unit/parser/parser.rb
@@ -387,6 +387,12 @@ describe Puppet::Parser do
@parser.stubs(:load).returns(false)
@parser.find_or_load("Bogus_namespace","Bogus_name",:my_type).should == false
end
+
+ it "should directly look for fully qualified classes" do
+ @loaded_code.stubs(:find_hostclass).with("foo_namespace","::foo_name").returns(false, true)
+ @parser.expects(:load).with("foo_name").returns true
+ @parser.find_or_load("foo_namespace","::foo_name",:hostclass)
+ end
end
end