Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/committee/test/methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def assert_request_schema_confirm(except: {})
schema_validator.request_validate(request_object)
end
end

increment_assertion_count
end

def assert_response_schema_confirm(expected_status = nil)
Expand All @@ -46,6 +48,8 @@ def assert_response_schema_confirm(expected_status = nil)
end

schema_validator.response_validate(status, headers, [body], true) if validate_response?(status)

increment_assertion_count
end

def committee_options
Expand Down Expand Up @@ -90,6 +94,10 @@ def old_behavior

private

def increment_assertion_count
Comment thread
geemus marked this conversation as resolved.
assert true if respond_to?(:assertions)
end

# Temporarily adds dummy values for excepted parameters during validation
# @see ExceptParameter
def with_except_params(except)
Expand Down