Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding :xml to a node create

  • Loading branch information...
commit e1b994519a8af50e30d223fcb7db9ffbb54874da 1 parent e0b258c
@adamhjk authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/iclassify/client.rb
  2. +1 −1  test/icagent/node_test.rb
View
2  lib/iclassify/client.rb
@@ -31,7 +31,7 @@ def search(query, attribs=[])
end
def get_node(node_id)
- IClassify::Node.new(get_rest("nodes/#{node_id}"))
+ IClassify::Node.new(:xml, get_rest("nodes/#{node_id}"))
end
def update_node(node)
View
2  test/icagent/node_test.rb
@@ -5,7 +5,7 @@ class NodeTest < Test::Unit::TestCase
XML = IO.read(File.dirname(__FILE__) + '/../data/new_node.xml')
def setup
- @node = IClassify::Node.new(XML)
+ @node = IClassify::Node.new(:xml, XML)
end
def test_load_data
Please sign in to comment.
Something went wrong with that request. Please try again.