test/test_yahoo.rb in yahoo-1.1.0 vs test/test_yahoo.rb in yahoo-1.1.1
- old
+ new
@@ -1,21 +1,21 @@
require 'test/unit'
+require 'rubygems'
require 'rc_rest/uri_stub'
require 'yahoo'
class Yahoo::Test < Yahoo
def initialize(*args)
@host = 'api.test.yahoo.com'
@service_name = 'TestService'
@version = 'Vtest'
- @method = 'test'
super
end
def test
- get :test_param => 5
+ get :test, :test_param => 5
end
def parse_response(xml)
return xml
end
@@ -41,10 +41,10 @@
else
flunk 'expected an error'
end
def test_make_url
- url = @t.make_url :param => 'value'
+ url = @t.make_url :test, :param => 'value'
expected = 'http://api.test.yahoo.com/TestService/Vtest/test?appid=APP_ID&output=xml¶m=value'
assert_equal expected, url.to_s
end