From a2c92c13ee64c0adf79d5bbbf2e4d33d5b656f4a Mon Sep 17 00:00:00 2001 From: Herwin Date: Thu, 29 May 2025 07:35:23 +0200 Subject: [PATCH] Add spec for Warning.categories --- core/warning/categories_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 core/warning/categories_spec.rb diff --git a/core/warning/categories_spec.rb b/core/warning/categories_spec.rb new file mode 100644 index 000000000..ee8b9f750 --- /dev/null +++ b/core/warning/categories_spec.rb @@ -0,0 +1,9 @@ +require_relative '../../spec_helper' + +ruby_version_is "3.4" do + describe "Warning.categories" do + it "returns the list of possible warning categories" do + Warning.categories.sort.should == [:deprecated, :experimental, :performance, :strict_unused_block] + end + end +end