Commit b3b4c4e
Changed files (1)
spec
elelem
spec/elelem/toolbox_spec.rb
@@ -10,7 +10,7 @@ RSpec.describe Elelem::Toolbox do
tool_names = tools.map { |t| t.dig(:function, :name) }
expect(tool_names).to include("grep", "list", "read")
- expect(tool_names).not_to include("write", "patch", "execute")
+ expect(tool_names).not_to include("write", "patch", "bash")
end
it "returns write tools for write mode" do
@@ -19,7 +19,7 @@ RSpec.describe Elelem::Toolbox do
tool_names = tools.map { |t| t.dig(:function, :name) }
expect(tool_names).to include("patch", "write")
- expect(tool_names).not_to include("grep", "execute")
+ expect(tool_names).not_to include("grep", "bash")
end
it "returns execute tools for execute mode" do
@@ -27,7 +27,7 @@ RSpec.describe Elelem::Toolbox do
tools = subject.tools_for(mode)
tool_names = tools.map { |t| t.dig(:function, :name) }
- expect(tool_names).to include("execute")
+ expect(tool_names).to include("bash")
expect(tool_names).not_to include("grep", "write")
end
@@ -36,7 +36,7 @@ RSpec.describe Elelem::Toolbox do
tools = subject.tools_for(mode)
tool_names = tools.map { |t| t.dig(:function, :name) }
- expect(tool_names).to include("grep", "list", "read", "patch", "write", "execute")
+ expect(tool_names).to include("grep", "list", "read", "patch", "write", "bash")
end
it "returns combined tools for build mode" do
@@ -45,7 +45,7 @@ RSpec.describe Elelem::Toolbox do
tool_names = tools.map { |t| t.dig(:function, :name) }
expect(tool_names).to include("grep", "read", "write", "patch")
- expect(tool_names).not_to include("execute")
+ expect(tool_names).not_to include("bash")
end
end