Skip to content

Commit

Permalink
use more idiomatic spec matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
opyate committed Mar 23, 2016
1 parent 5faae63 commit e90ee34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/plugins/correlation-id/access_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ describe("Correlation ID Plugin", function()
local response1, status1 = http_client.get(STUB_GET_URL, nil, {host = host})
assert.equal(200, status1)
local correlation_id1 = json.decode(response1).headers[header:lower()]
assert.truthy(correlation_id1:match(pattern))
assert.match(correlation_id1, pattern)

local response2, status2 = http_client.get(STUB_GET_URL, nil, {host = host})
assert.equal(200, status2)
local correlation_id2 = json.decode(response2).headers[header:lower()]
assert.truthy(correlation_id2:match(pattern))
assert.match(correlation_id2, pattern)

assert.are_not_equals(correlation_id1, correlation_id2)

Expand Down

0 comments on commit e90ee34

Please sign in to comment.