From ef5c4aeb1f58bd37e8b4ea0fa17fbdbc2fbf7677 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Thu, 23 Jul 2009 14:45:29 +1000 Subject: Fixed #2436 - Changed ralsh to use Puppet::Type.new and avoid deprecation notice --- spec/unit/application/ralsh.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/unit/application') diff --git a/spec/unit/application/ralsh.rb b/spec/unit/application/ralsh.rb index 289748a10..4372dac37 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) + it "should retrieve a specific instance" do + @type.expects(:new).returns(@object) @object.expects(:retrieve) @ralsh.main -- cgit