Commit 8b2b581

mo khan <mo@mokhan.ca>
2026-01-21 17:59:06
test: fix specs. to_h -> to_a
1 parent b25fac8
Changed files (1)
spec
spec/elelem/toolbox_spec.rb
@@ -3,9 +3,9 @@
 RSpec.describe Elelem::Toolbox do
   subject { described_class.new }
 
-  describe "#to_h" do
+  describe "#to_a" do
     it "returns all tools in API format" do
-      tool_names = subject.to_h.map { |t| t.dig(:function, :name) }
+      tool_names = subject.to_a.map { |t| t.dig(:function, :name) }
       expect(tool_names).to include("read", "write", "execute")
     end
   end