test/integration/xml_api_test.rb in zena-1.0.0.rc2 vs test/integration/xml_api_test.rb in zena-1.0.0.rc3

- old
+ new

@@ -5,10 +5,15 @@ class NodeResource < ActiveResource::Base headers['HTTP_X_AUTHENTICATION_TOKEN'] = 'mytoken' include Zena::Integration::MockResource self.site = 'http://test.host' self.element_name = 'node' + def initialize(*args) + super + hash = self.attributes + hash['tag_names'] = Zena::Remote::SerializableArray.new('tag_names', 'tag', hash['tag_names'] || []) + end end class BadTokenResource < ActiveResource::Base headers['HTTP_X_AUTHENTICATION_TOKEN'] = 'some-bad-token' include Zena::Integration::MockResource @@ -59,10 +64,10 @@ :params => {:title => 'Fuda'} ).map(&:id) assert_equal [nodes_zip(:status)], result end - + should 'find the list of nodes with qb' do subject # create index entry for art # create index entry for status node = secure!(Node) { nodes(:status) } node.update_attributes(:title => 'Fuda', :v_status => Zena::Status[:pub]) \ No newline at end of file