Permalink
Browse files

renamed RunFeed to Feed as it makes more sense

  • Loading branch information...
1 parent a0f46fe commit f793605071056945f8474fe41b2daf6843a72d6c bob-p committed Jan 13, 2009
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/nikeplus.rb
  2. +1 −1 lib/nikeplus/{run_feed.rb → feed.rb}
  3. +2 −2 spec/nikeplus/{run_feed_spec.rb → feed_spec.rb}
View
@@ -4,6 +4,6 @@
require 'rexml/document'
require 'cgi'
-%w{base session http_response profile run run_feed}.each do |file|
+%w{base session http_response profile run feed}.each do |file|
require File.join(File.dirname(__FILE__), 'nikeplus', file)
end
@@ -1,5 +1,5 @@
module NikePlus
- class RunFeed
+ class Feed
XML_BASE_URL = 'http://nikeplus.nike.com/nikeplus/v1/services/widget/get_public_run_list.jsp?userID='
def initialize(uid)
@@ -1,6 +1,6 @@
require File.dirname(__FILE__) + '/../spec_helper'
-describe "NikePlus::RunFeed" do
+describe "NikePlus::Feed" do
it "should get runs from xml feed" do
mock_response = mock("response")
@@ -13,7 +13,7 @@
NikePlus::Run.expects(:new).times(10)
- run_feed = NikePlus::RunFeed.new(060606)
+ run_feed = NikePlus::Feed.new(060606)
run_feed.runs
end
end

0 comments on commit f793605

Please sign in to comment.