spec/unit/support/update_webmock_data in trollolo-0.0.9 vs spec/unit/support/update_webmock_data in trollolo-0.0.10

- old
+ new

@@ -11,10 +11,12 @@ def scrub_file(file) json = JSON.parse(File.read(file)) if json.is_a?(Hash) and json.has_key?("cards") json["cards"].each do |card| - card["email"] = "trello@example.com" + if card.has_key?("email") + card["email"] = "trello@example.com" + end end end File.open(file, "w") do |f| f.write(JSON.pretty_generate(json)) end