diff options
author | Seth Vargo <sethvargo@gmail.com> | 2014-07-18 13:59:49 -0500 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-07-18 12:01:12 -0700 |
commit | 4aec038d42eae5c3c3bac50aa211d2b69cf54019 (patch) | |
tree | 4e227fd013062502777334d951677e9a473bd21e /spec/unit | |
parent | c7d91cc2425e0060b33cfdb2d1b5fad3f9d4a5da (diff) | |
download | chef-4aec038d42eae5c3c3bac50aa211d2b69cf54019.tar.gz |
Remove appending :actions and :valid_actions
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/lwrp_spec.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/unit/lwrp_spec.rb b/spec/unit/lwrp_spec.rb index bffec9cace..9a775f2dff 100644 --- a/spec/unit/lwrp_spec.rb +++ b/spec/unit/lwrp_spec.rb @@ -218,27 +218,6 @@ describe "LWRP" do expect(child.default_action).to eq(:dont_eat) end end - - context "when actions are already defined" do - let(:child) do - Class.new(parent) do - actions :eat - actions :sleep - actions :drink - end - end - - def raise_if_deprecated! - if Chef::VERSION.split('.').first.to_i > 11 - raise "This test should be removed and the associated code should be removed!" - end - end - - it "ammends actions when they are already defined" do - raise_if_deprecated! - expect(child.actions).to eq([:eat, :sleep, :drink]) - end - end end end |