spec/runners/crud/verifier.rb
# Compare the actual operation result to the expected operation result.
#
# Uses RSpec matchers and raises expectation failures if there is a
# mismatch.
Compare the actual operation result to the expected operation result.
Uses RSpec matchers and raises expectation failures if there is a
mismatch.
Compare the actual operation result to the expected operation result . Uses RSpec matchers and raises expectation failures if there is a mismatch .
def verify_operation_result(expected, actual)
        if expected.is_a?(Array)
          if expected.empty?
            expect(actual).to be_empty
          else
            expected.each_with_index do |expected_elt, i|
              if expected_elt
                verify_result(expected_elt, actual[i])
              end
            end
          end
        else
          verify_result(expected, actual)
        end
      end
def verify_operation_result ( expected , actual ) if expected . is_a? ( Array ) if expected . empty? expect ( actual ) . to be_empty else expected . each_with_index do | expected_elt , i | if expected_elt verify_result ( expected_elt , actual [ i ] ) end end end else verify_result ( expected , actual ) end end
Compare the actual operation result to the expected operation result.
Compare the actual operation result to the expected operation result .
# If the YAML spec test does not define a result, # do not assert the operation's result - the operation may # have produced a result, the test just does not care what it is
expected
actual