We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e978965 commit 8bd4f18Copy full SHA for 8bd4f18
2 files changed
test/integration/api/v1/search_test.rb
@@ -1,7 +1,11 @@
1
require "test_helper"
2
3
class Api::V1::Search < ActionDispatch::IntegrationTest
4
+ include SearchKickHelper
5
+
6
test "request with non-string query shows bad request" do
7
+ import_and_refresh
8
9
get "/api/v1/search.json?query[]="
10
11
assert_response :bad_request
test/integration/encoding_test.rb
class EncodingTest < ActionDispatch::IntegrationTest
test "invalid utf-8 characters should be sanitized" do
get "/api/v1/search.json?query=vagrant%ADvbguest"
assert_response :success
0 commit comments