summaryrefslogtreecommitdiff
path: root/spec/unit/resource/breakpoint_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/breakpoint_spec.rb')
-rw-r--r--spec/unit/resource/breakpoint_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/resource/breakpoint_spec.rb b/spec/unit/resource/breakpoint_spec.rb
index ce0df676dd..009f0604d4 100644
--- a/spec/unit/resource/breakpoint_spec.rb
+++ b/spec/unit/resource/breakpoint_spec.rb
@@ -48,12 +48,12 @@ describe Chef::Resource::Breakpoint do
provider.action_break
end
- it "allows the action :break" do
- expect(resource.allowed_actions).to include(:break)
+ it "sets the default action as :break" do
+ expect(resource.action).to eql([:break])
end
- it "defaults to the break action" do
- expect(resource.action).to eq([:break])
+ it "supports :break actions" do
+ expect { resource.action :break }.not_to raise_error
end
it "names itself after the line number of the file where it's created" do