test/support/custom_assertions.rb
#
#  Fails unless +json contains string +key.
#
Fails unless +json contains string +key.
Fails unless + json contains string + key .
def json_keys(json, keys)
    Array(keys).each { |key|
      return false if !parsed_json(json).keys.include?(key.to_s)
    }
  end
def json_keys ( json , keys ) Array ( keys ) . each { | key | return false if ! parsed_json ( json ) . keys . include? ( key . to_s ) } end
Fails unless +json contains string +key.
Fails unless + json contains string + key .
json
keys