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

- old
+ new

@@ -42,11 +42,11 @@ end # reading a node context 'searching for nodes' do subject do node = secure!(Node) { nodes(:art) } - node.update_attributes(:title => 'Dada', :v_status => Zena::Status[:pub]) + node.update_attributes(:title => 'Dada', :v_status => Zena::Status::Pub) node end should 'succeed' do subject # create index entry @@ -55,11 +55,11 @@ should 'find the list of nodes' 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]) + node.update_attributes(:title => 'Fuda', :v_status => Zena::Status::Pub) result = NodeResource.find(:all, :from => '/nodes/search', :params => {:title => 'Fuda'} ).map(&:id) @@ -69,10 +69,10 @@ 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]) + node.update_attributes(:title => 'Fuda', :v_status => Zena::Status::Pub) result = NodeResource.find(:all, :from => '/nodes/search', :params => {:qb => 'nodes where title like "%da%" in site'} ).map(&:id) \ No newline at end of file