spec/unit/configurer/fact_handler.rb in puppet-0.25.0 vs spec/unit/configurer/fact_handler.rb in puppet-0.25.1

- old
+ new

@@ -100,25 +100,25 @@ facts.expects(:render).returns "my text" text = CGI.escape("my text") @facthandler.expects(:find_facts).returns facts - @facthandler.facts_for_uploading.should == {:facts_format => :yaml, :facts => text} + @facthandler.facts_for_uploading.should == {:facts_format => :b64_zlib_yaml, :facts => text} end it "should properly accept facts containing a '+'" do facts = stub 'facts' facts.expects(:render).returns "my+text" text = "my%2Btext" @facthandler.expects(:find_facts).returns facts - @facthandler.facts_for_uploading.should == {:facts_format => :yaml, :facts => text} + @facthandler.facts_for_uploading.should == {:facts_format => :b64_zlib_yaml, :facts => text} end it "should hard-code yaml as the serialization" do facts = stub 'facts' - facts.expects(:render).with(:yaml).returns "my text" + facts.expects(:render).with(:b64_zlib_yaml).returns "my text" text = CGI.escape("my text") @facthandler.expects(:find_facts).returns facts @facthandler.facts_for_uploading