Skip to content

Commit

Permalink
unmarshall method should be selfed
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermesilveira committed Oct 24, 2010
1 parent 4faee92 commit 7c48b34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/restfulie/common/converter/open_search.rb
Expand Up @@ -8,7 +8,7 @@ class Converter::OpenSearch#:nodoc:

class Restfulie::Common::Converter::OpenSearch

def unmarshal(xml)
def self.unmarshal(xml)
hash = Hash.from_xml(xml)
descriptor = Descriptor.new(hash)
end
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/common/converter/opensearch/descriptor_spec.rb
Expand Up @@ -13,7 +13,7 @@
<Contact>admin@restbuy.com</Contact>
<Url type="application/atom+xml" template="http://localhost:3000/products?q={searchTerms}&amp;pw={startPage?}&amp;format=atom" />
</OpenSearchDescription>'
@descriptor = Restfulie::Common::Converter::OpenSearch.new.unmarshal(xml)
@descriptor = Restfulie::Common::Converter::OpenSearch.unmarshal(xml)
end

it "should unmarshall opensearch xml descriptions" do
Expand Down

0 comments on commit 7c48b34

Please sign in to comment.