From 8519b53f84c9848e63a290283f57857788a425fa Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Sun, 26 Feb 2017 17:05:03 -0800 Subject: removing a Chef-13 deprecation i sorta disagree with this seems like entirely fine behavior to me. i don't see the benefit of forcing users to put all their actions on one line. mostly it was vargo and keiser who wanted this gone and since i'm the last one still at Chef i win the argument? Signed-off-by: Lamont Granquist --- spec/unit/lwrp_spec.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'spec/unit') diff --git a/spec/unit/lwrp_spec.rb b/spec/unit/lwrp_spec.rb index 9700b8ef2b..e167adb04c 100644 --- a/spec/unit/lwrp_spec.rb +++ b/spec/unit/lwrp_spec.rb @@ -1,6 +1,6 @@ # # Author:: Christopher Walters () -# Copyright:: Copyright 2009-2016, Chef Software Inc. +# Copyright:: Copyright 2009-2017, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -324,14 +324,7 @@ describe "LWRP" do end end - def raise_if_deprecated! - if Chef::VERSION.split(".").first.to_i > 12 - raise "This test should be removed and the associated code should be removed!" - end - end - it "amends actions when they are already defined" do - raise_if_deprecated! expect(child.actions).to eq([:nothing, :eat, :sleep, :drink]) end end -- cgit v1.2.1