spec/lita/handlers/payload.rb in lita-github-commits-0.2.0 vs spec/lita/handlers/payload.rb in lita-github-commits-0.2.5

- old
+ new

@@ -4,9 +4,14 @@ payload = MultiJson.load(valid_payload, symbolize_keys: true) payload[:commits] = [payload[:commits].first] payload.to_json end + def first_commit + payload = MultiJson.load(valid_payload, symbolize_keys: true) + payload[:commits].first + end + def valid_payload_diff_committer payload = MultiJson.load(valid_payload, symbolize_keys: true) payload[:commits] = payload[:commits].map do |commit| commit[:committer] = { email: "committer@noway.biz",