Skip to content

Commit

Permalink
fix up another test
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed Jan 8, 2025
1 parent 95a6970 commit 5010cf9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 13 additions & 5 deletions test/controllers/ai_judges/prompt_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,22 @@

module AiJudges
class PromptControllerTest < ActionDispatch::IntegrationTest
test 'should get edit' do
get ai_judges_prompt_edit_url
assert_response :success
let(:user) { users(:random) }
let(:ai_judge) { users(:judge_judy) }
let(:team) { teams(:shared) }

setup do
login_user_for_integration_test user
end

test 'should get update' do
get ai_judges_prompt_update_url
test 'should get edit' do
get edit_ai_judge_prompt_url(ai_judge_id: ai_judge.id)
assert_response :success
end

# test 'should get update' do
# patch ai_judge_prompt_url
# assert_response :success
# end
end
end
2 changes: 1 addition & 1 deletion test/integration/judge_judy_flow_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class JudgeJudyFlowTest < ActionDispatch::IntegrationTest
assert_includes acase.teams, team
assert_includes book.teams, team

assert_equal 7, book.query_doc_pairs.size
assert_equal 8, book.query_doc_pairs.size

# Set up Judge Judy. Give her a prompt (and an OPENAI KEY)
judge_judy = User.new name: 'judge judy', email: '[email protected]', password: 'password'
Expand Down

0 comments on commit 5010cf9

Please sign in to comment.