Skip to content

Commit

Permalink
fix to semantic_node_spec. All tests GREEN
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingzumwalt committed Jun 16, 2010
1 parent 291c3f5 commit f433f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/unit/semantic_node_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class SpecNode
local_node.expects(:outbound_relationships).returns({:is_member_of => ["my:_PID1_", "my:_PID2_", "my:_PID3_"]}).times(2)
mock_repo = mock("repo")
solr_result = mock("solr result", :is_a? => true)
solr_result.expects(:hits).returns([{"id"=> "my:_PID1_", "active_fedora_model_s" => "SpecNode"}, {"id"=> "my:_PID2_", "active_fedora_model_s" => "SpecNode"}, {"id"=> "my:_PID3_", "active_fedora_model_s" => "SpecNode"}])
solr_result.expects(:hits).returns([{"id"=> "my:_PID1_", "active_fedora_model_s" => ["SpecNode"]}, {"id"=> "my:_PID2_", "active_fedora_model_s" => ["SpecNode"]}, {"id"=> "my:_PID3_", "active_fedora_model_s" => ["SpecNode"]}])
ActiveFedora::SolrService.instance.conn.expects(:query).with("id:my\\:_PID1_ OR id:my\\:_PID2_ OR id:my\\:_PID3_").returns(solr_result)
mock_repo.expects(:find_model).with("my:_PID1_", SpecNode).returns("AR1")
mock_repo.expects(:find_model).with("my:_PID2_", SpecNode).returns("AR2")
Expand Down

0 comments on commit f433f03

Please sign in to comment.