Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

renamed RunFeed to Feed as it makes more sense

  • Loading branch information...
commit f793605071056945f8474fe41b2daf6843a72d6c 1 parent a0f46fe
bob-p authored
View
2  lib/nikeplus.rb
@@ -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
View
2  lib/nikeplus/run_feed.rb → lib/nikeplus/feed.rb
@@ -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)
View
4 spec/nikeplus/run_feed_spec.rb → spec/nikeplus/feed_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.