We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee5e2a7 commit 7355225Copy full SHA for 7355225
spec/yaml-test-runner/code_runner.rb
@@ -95,7 +95,12 @@ def do_length(action)
95
# action - { 'is_true' => field } or { 'is_true' => '' }
96
#
97
def is_true(action)
98
- response_value = search_in_response(action['is_true']) unless [true, false].include? @response
+ if @response.respond_to?(:body) && !@response&.nil? && ['', []].include?(action['is_true'])
99
+ print_success
100
+ return
101
+ end
102
+
103
+ response_value = search_in_response(action['is_true']) unless [true, false].include?(@response)
104
if @response == true || !response_value.nil?
105
print_success
106
else
0 commit comments