Skip to content

Commit 8377c5a

Browse files
authored
fix kwai contract test and make it more resilient (#459)
rails test test/integration/parsers/kwai_test.rb:4
1 parent ef9581e commit 8377c5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/parsers/kwai_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ class KwaiIntegrationTest < ActiveSupport::TestCase
77

88
assert_kind_of String, data['title']
99
assert_kind_of String, data['description']
10-
assert_equal 'Arthur Virgilio', data['username']
11-
assert_equal 'Arthur Virgilio', data['author_name']
10+
assert_match(/arthur\s*virgilio/i, data['username'])
11+
assert_match(/arthur\s*virgilio/i, data['author_name'])
1212
assert_equal 'kwai', data['provider']
1313
assert_equal 'item', data['type']
1414
end

0 commit comments

Comments
 (0)