Skip to content
Browse files

Feed to store information about a feed

  • Loading branch information...
1 parent 7c06b66 commit 35d5b14583418120cb2da166020dd49fe167049a Michael Hughes committed Mar 20, 2013
Showing with 15 additions and 0 deletions.
  1. +3 −0 src/server/Feed.coffee
  2. +12 −0 test/server/unit/Feed_test.coffee
View
3 src/server/Feed.coffee
@@ -0,0 +1,3 @@
+exports.createFeed = (aURL,someTags)->
+ URL:aURL
+ tags:someTags
View
12 test/server/unit/Feed_test.coffee
@@ -0,0 +1,12 @@
+feed= require '../../../src/server/Feed.coffee'
+expect = (require 'chai').expect
+
+describe 'A Feed', ->
+ it 'should have a URL', ->
+ f = feed.createFeed("http://URL")
+ expect(f.URL).to.equal "http://URL"
+
+ it 'should have some tags', ->
+ f = feed.createFeed("http://URL",["Technology","News"])
+ expect(f.tags).to.eql ["Technology","News"]
+

0 comments on commit 35d5b14

Please sign in to comment.
Something went wrong with that request. Please try again.