spec/runners/crud/verifier.rb
def verify_collection_data(expected_collection_data, actual_collection_data)
        if expected_collection_data.nil?
          expect(actual_collection_data).to be nil
        elsif expected_collection_data.empty?
          expect(actual_collection_data).to be_empty
        else
          expect(actual_collection_data).not_to be nil
          expect(actual_collection_data).to match_with_type(expected_collection_data)
        end
      end
# Compare the existing collection data and the expected collection data.
#
# Uses RSpec matchers and raises expectation failures if there is a
# mismatch.
Compare the existing collection data and the expected collection data.
Uses RSpec matchers and raises expectation failures if there is a
mismatch.
Compare the existing collection data and the expected collection data . Uses RSpec matchers and raises expectation failures if there is a mismatch .
def verify_collection_data(expected_collection_data, actual_collection_data)
        if expected_collection_data.nil?
          expect(actual_collection_data).to be nil
        elsif expected_collection_data.empty?
          expect(actual_collection_data).to be_empty
        else
          expect(actual_collection_data).not_to be nil
          expect(actual_collection_data).to match_with_type(expected_collection_data)
        end
      end
def verify_collection_data ( expected_collection_data , actual_collection_data ) if expected_collection_data . nil? expect ( actual_collection_data ) . to be nil elsif expected_collection_data . empty? expect ( actual_collection_data ) . to be_empty else expect ( actual_collection_data ) . not_to be nil expect ( actual_collection_data ) . to match_with_type ( expected_collection_data ) end end
Compare the existing collection data and the expected collection data.
Compare the existing collection data and the expected collection data .
expected_collection_data
actual_collection_data