test/support/custom_assertions.rb
def refute_json_keys(json, keys)
    refute json_keys(json, keys),
      """Found #{"key".pluralize(keys.length)}
         #{ Array(keys).map{|k| k.to_s}.join(', ') } in json:\n#{ json.keys.inspect }"""
  end
#
#  Fails if +json contains string +key.
#
Fails if +json contains string +key.
Fails if + json contains string + key .
def refute_json_keys(json, keys)
    refute json_keys(json, keys),
      """Found #{"key".pluralize(keys.length)}
         #{ Array(keys).map{|k| k.to_s}.join(', ') } in json:\n#{ json.keys.inspect }"""
  end
def refute_json_keys ( json , keys ) refute json_keys ( json , keys ) , "" "Found #{"key".pluralize(keys.length)}
         #{ Array(keys).map{|k| k.to_s}.join(', ') } in json:\n#{ json.keys.inspect }" "" end
Fails if +json contains string +key.
Fails if + json contains string + key .
json
keys