diff --git a/app/assets/templates/views/queries.html b/app/assets/templates/views/queries.html index a34a621d6..0a9f88324 100644 --- a/app/assets/templates/views/queries.html +++ b/app/assets/templates/views/queries.html @@ -108,6 +108,7 @@
Configure the AI Judge with information Quepid needs to run the judge.
+Configure the AI Judge with the information Quepid needs to run the judge.
<%= counter %>
.
diff --git a/config/initializers/console_commands.rb b/config/initializers/console_commands.rb new file mode 100644 index 000000000..3310045bd --- /dev/null +++ b/config/initializers/console_commands.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +Rails.application.console do + def wcw val + puts "Val: #{val}" + pp val + end +end diff --git a/test/controllers/books_controller_test.rb b/test/controllers/books_controller_test.rb index bd4b86f58..96dd74798 100644 --- a/test/controllers/books_controller_test.rb +++ b/test/controllers/books_controller_test.rb @@ -17,7 +17,7 @@ class BooksControllerTest < ActionDispatch::IntegrationTest assert_difference 'james_bond_movies.judgements.count' do patch "/books/#{james_bond_movies.id}/run_judge_judy/#{judge_judy.id}", params: { number_of_pairs: 1 } follow_redirect! - assert_equal "Set AI Judge #{judge_judy.name} to work judging query/doc pairs.", flash[:notice] + assert_equal "AI Judge #{judge_judy.name} will start evaluating query/doc pairs.", flash[:notice] end end end @@ -28,7 +28,7 @@ class BooksControllerTest < ActionDispatch::IntegrationTest patch "/books/#{james_bond_movies.id}/run_judge_judy/#{judge_judy.id}", params: { judge_all: 1, number_of_pairs: 1 } follow_redirect! - assert_equal "Set AI Judge #{judge_judy.name} to work judging query/doc pairs.", flash[:notice] + assert_equal "AI Judge #{judge_judy.name} will start evaluating query/doc pairs.", flash[:notice] assert_equal james_bond_movies.query_doc_pairs.count, james_bond_movies.judgements.where(user: judge_judy).count end end