Skip to content

Commit 8bd4f18

Browse files
committed
Fix flaky encoding/search tests.
1 parent e978965 commit 8bd4f18

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

test/integration/api/v1/search_test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
require "test_helper"
22

33
class Api::V1::Search < ActionDispatch::IntegrationTest
4+
include SearchKickHelper
5+
46
test "request with non-string query shows bad request" do
7+
import_and_refresh
8+
59
get "/api/v1/search.json?query[]="
610

711
assert_response :bad_request

test/integration/encoding_test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
require "test_helper"
22

33
class EncodingTest < ActionDispatch::IntegrationTest
4+
include SearchKickHelper
5+
46
test "invalid utf-8 characters should be sanitized" do
7+
import_and_refresh
8+
59
get "/api/v1/search.json?query=vagrant%ADvbguest"
610

711
assert_response :success

0 commit comments

Comments
 (0)