+1 On Dec 29, 2009, at 6:53 AM, Brice Figureau wrote:
> Signed-off-by: Brice Figureau <[email protected]> > --- > spec/unit/application/puppetd.rb | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/spec/unit/application/puppetd.rb b/spec/unit/ > application/puppetd.rb > index 04c6daf..9977607 100755 > --- a/spec/unit/application/puppetd.rb > +++ b/spec/unit/application/puppetd.rb > @@ -456,6 +456,7 @@ describe "puppetd" do > describe "with --onetime" do > > before :each do > + @agent.stubs(:run).returns(:report) > @puppetd.options.stubs(: > []).with(:client).returns(:client) > @puppetd.options.stubs(: > []).with(:detailed_exitcodes).returns(false) > @puppetd.stubs(:exit).with(0) > @@ -478,7 +479,7 @@ describe "puppetd" do > end > > it "should let the agent run" do > - @agent.expects(:run) > + @agent.expects(:run).returns(:report) > > @puppetd.onetime > end > -- > 1.6.5.2 > > -- > > You received this message because you are subscribed to the Google > Groups "Puppet Developers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected] > . > For more options, visit this group at > http://groups.google.com/group/puppet-dev?hl=en > . > > -- You've got to take the bitter with the sour. -- Samuel Goldwyn --------------------------------------------------------------------- Luke Kanies -|- http://reductivelabs.com -|- +1(615)594-8199 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
