1. Miki Tebeka
  2. feedme

Commits

Miki Tebeka  committed 5f30c72

Adding :id to entries

  • Participants
  • Parent commits 6842909
  • Branches default

Comments (0)

Files changed (2)

File src/feedme.clj

View file
  • Ignore whitespace
      :categories (into [] (map #(.getName %) (.getCategories e)))
      :content-type (.getMode content)
      :content (.getValue content)
+     :id (.getUri e)
      :link (.getLink e)
      :published (.getPublishedDate e)
      :title (.getTitle e)

File test/feedme_test.clj

View file
  • Ignore whitespace
         feed (parse uri)]
     (is (count (feed :entries)) 35)
     (is (:title feed) "Private Feed for mikitebeka")
+    (is (:id (nth (:entries feed) 0)) 
+        "tag:github.com,2008:PushEvent/153032941")
     (is (:title (nth (:entries feed) 0)) 
         "sah pushed to master at saucelabs/sauce")))