Skip to content

Commit

Permalink
narrowed tests for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren committed Aug 13, 2018
1 parent b0c7a0f commit d6294e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/functional/search_api_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,12 @@ def app

matcher = JsonExpressions::Matcher.new(pattern)

assert_equal "TEST", last_response.body

json = JSON.parse(last_response.body)

assert_equal "TEST", json
assert_equal "TEST", json['items']
assert_equal "/profile/steff3", json['items'][0]['docUrl']
assert_equal "/profile/steff2", json['items'][1]['docUrl']
assert_equal "/profile/steff1", json['items'][2]['docUrl']
Expand Down

0 comments on commit d6294e7

Please sign in to comment.