Schwing! +1 On Jul 22, 2009, at 9:46 PM, James Turnbull wrote:
> > > Signed-off-by: James Turnbull <[email protected]> > --- > lib/puppet/application/ralsh.rb | 2 +- > spec/unit/application/ralsh.rb | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/lib/puppet/application/ralsh.rb b/lib/puppet/ > application/ralsh.rb > index d15d3e6..8d8d306 100644 > --- a/lib/puppet/application/ralsh.rb > +++ b/lib/puppet/application/ralsh.rb > @@ -104,7 +104,7 @@ Puppet::Application.new(:ralsh) do > transbucket.sort { |a,b| a.name <=> > b.name }.collect(&format) > else > if name > - obj = typeobj.create(:name => name, :check => > properties) > + obj = typeobj.new(:name => name, :check => > properties) > vals = obj.retrieve > > unless params.empty? > diff --git a/spec/unit/application/ralsh.rb b/spec/unit/application/ > ralsh.rb > index 289748a..d8571ad 100644 > --- a/spec/unit/application/ralsh.rb > +++ b/spec/unit/application/ralsh.rb > @@ -206,12 +206,12 @@ describe "ralsh" do > > ARGV.stubs(:shift).returns("type").then.returns('name') > > ARGV.stubs(:length).returns(1).then.returns(1).then.returns(0) > @object = stub_everything 'object', :to_trans => > stub_everything('transportable') > - @type.stubs(:create).returns(@object) > + @type.stubs(:new).returns(@object) > @object.stubs(:retrieve) > end > > it "should retrieve a specific instace" do > - @type.expects(:create).returns(@object) > + @type.expects(:new).returns(@object) > @object.expects(:retrieve) > > @ralsh.main > -- > 1.6.0.6 > > > > -- What happens to the hole when the cheese is gone? -- Bertolt Brecht --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
