summaryrefslogtreecommitdiffstats
path: root/spec/unit/application
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-05-27 09:57:57 -0500
committerLuke Kanies <luke@madstop.com>2009-05-27 10:19:50 -0500
commitb83b159b69e1952c20f23629fc1255069ad5abb0 (patch)
tree71880e3018b6d40137038bd7b37604a827f9c67e /spec/unit/application
parent3d2189f3b6173171b37eaf814fdda2756c5a348a (diff)
downloadpuppet-b83b159b69e1952c20f23629fc1255069ad5abb0.tar.gz
puppet-b83b159b69e1952c20f23629fc1255069ad5abb0.tar.xz
puppet-b83b159b69e1952c20f23629fc1255069ad5abb0.zip
Fixing #2243 - puppetrun works again
The problem was that some defaults were nil but had to be 'false', because xmlrpc can't serialize 'nil' as an rpc argument. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/application')
-rwxr-xr-xspec/unit/application/puppetrun.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/unit/application/puppetrun.rb b/spec/unit/application/puppetrun.rb
index 2a8ccb84a..d44b406e9 100755
--- a/spec/unit/application/puppetrun.rb
+++ b/spec/unit/application/puppetrun.rb
@@ -57,6 +57,18 @@ describe "puppetrun" do
@puppetrun.options[:fqdn].should be_true
end
+
+ it "should set ignoreschedules to 'false'" do
+ @puppetrun.run_preinit
+
+ @puppetrun.options[:ignoreschedules].should be_false
+ end
+
+ it "should set foreground to 'false'" do
+ @puppetrun.run_preinit
+
+ @puppetrun.options[:foreground].should be_false
+ end
end
describe "when applying options" do