Skip to content

Commit

Permalink
wire up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evdevdev committed Sep 13, 2024
1 parent 7b91b42 commit aec29cf
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/action_prompt/preview_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ class ActionPrompt::PreviewTest < ActiveSupport::TestCase
end

test "render without locals" do
skip
# result = ActionPrompt.render("hello_world")
# assert_equal "You are a helpful assistant who replies with, \"Hello, world!\"", result
result = HelloWorldPreview.new.hello_world
assert_equal "You are a helpful assistant who replies with, \"Hello, world!\"", result
end

test "render with locals" do
skip
# result = ActionPrompt.render("hello_somebody", locals: { name: "John" })
# assert_equal "You are a helpful assistant who replies with, \"Hello, John!\"", result
result = HelloWorldPreview.new.hello_somebody
assert_equal "You are a helpful assistant who replies with, \"Hello, Lenny!\"", result
end
end

0 comments on commit aec29cf

Please sign in to comment.