Skip to content

Commit

Permalink
Small fix so that the specs don't run of rubygems version of ServiceP…
Browse files Browse the repository at this point in the history
…roxy
  • Loading branch information
jeremydurham committed Jul 29, 2009
1 parent 669493d commit eac2e17
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
19 changes: 0 additions & 19 deletions spec/service_helper.rb
@@ -1,25 +1,6 @@
require 'hpricot'

# Service Endpoints
class InstantMessageService < ServiceProxy::Base

def parse_get_version(response)
xml = Hpricot.XML(response.body)
xml.at("GetVersionResult").inner_text
end

def build_login(options)
soap_envelope(options) do |xml|
xml.userId(options[:userId])
xml.password(options[:password])
end
end

def parse_login(response)
'Invalid username/password' if response.code == "500"
end
end

class ISBNService < ServiceProxy::Base

def build_is_valid_isbn13(options)
Expand Down
2 changes: 1 addition & 1 deletion spec/service_proxy_spec.rb
@@ -1,6 +1,6 @@
require 'rubygems'
require 'spec'
require 'service_proxy/base'
require 'lib/service_proxy/base'
require 'spec/service_helper'

describe ServiceProxy do
Expand Down

0 comments on commit eac2e17

Please sign in to comment.