Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test multivalued attribute fix

  • Loading branch information...
commit d18bf79804d6f73245debe1970e909990e9d697f 1 parent c71d6d2
@kvanhecke kvanhecke authored
Showing with 2 additions and 12 deletions.
  1. +2 −12 test/test_arrays.rb
View
14 test/test_arrays.rb
@@ -7,20 +7,10 @@ def test_array_multivalued
client = Sugestio.new('sandbox', 'demo')
- item = {:id => 7, :category => ["pop", "rock"], :from => "2010-11-01", :until => "2010-12-01"}
+ item = {:id => 7, "category[]" => ["pop", "rock"], :from => "2010-11-01", :until => "2010-12-01"}
result = client.add_item(item)
assert_equal(2, result['item'][0]['category'].length)
end
-
- def test_array_nested
-
- client = Sugestio.new('sandbox', 'demo')
-
- item = {:id => 7, :category => {"0" => "pop", "1" => "rock"}, :from => "2010-11-01", :until => "2010-12-01"}
- result = client.add_item(item)
-
- assert_equal(2, result['item'][0]['category'].length)
- end
-
+
end
Please sign in to comment.
Something went wrong with that request. Please try again.